Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codestyle #1

Merged
merged 3 commits into from Sep 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 0 additions & 12 deletions glacier-phone.pro
@@ -1,7 +1,5 @@
TARGET = glacier-phone

CONFIG += sailfishapp

SOURCES += src/glacier-phone.cpp

OTHER_FILES += qml/glacier-phone.qml \
Expand All @@ -11,16 +9,6 @@ OTHER_FILES += qml/glacier-phone.qml \
translations/*.ts \
glacier-phone.desktop

SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256

# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n

# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/glacier-phone-de.ts

DISTFILES += \
Expand Down
5 changes: 1 addition & 4 deletions qml/CallButton.qml
Expand Up @@ -11,10 +11,7 @@ Button{
property string fontFamily : "IonIcons"
property var glyph : Ionicons.Icon.person_add
property string buttonColor: "#1f1f1f"
style: ButtonStyle {
roundedButton: true
bgColor: buttonColor
}

width: size.dp(86)
height: width
Text {
Expand Down
6 changes: 3 additions & 3 deletions qml/CallPage.qml
Expand Up @@ -13,10 +13,10 @@ Rectangle{
color: "#151515"

FontLoader {
source: "res/fontawesome-webfont.ttf"
source: "/usr/share/glacier-phone/res/fontawesome-webfont.ttf"
}
FontLoader {
source: "res/ionicons.ttf"
source: "/usr/share/glacier-phone/res/ionicons.ttf"
}

Rectangle{
Expand All @@ -37,7 +37,7 @@ Rectangle{
asynchronous : true
fillMode: Image.PreserveAspectCrop
clip: true
source: "res/defaultCallerImage.png"
source: "/usr/share/glacier-phone/res/defaultCallerImage.png"
}

Item{
Expand Down
4 changes: 2 additions & 2 deletions qml/ContactsDelegate.qml
Expand Up @@ -23,14 +23,14 @@ Item {
width: height
Image{
id: callerPictureImage
source: "res/tempCallers/" + contactImage
source: "/usr/share/glacier-phone/res/tempCallers/" + contactImage
width: size.dp(75)
height: width
anchors.centerIn: parent
onStatusChanged: {
if (status == Image.Error)
{
source = "res/defaultContact.png";
source = "/usr/share/glacier-phone/res/defaultContact.png";
}
}
visible: false
Expand Down
25 changes: 6 additions & 19 deletions qml/Dialer.qml
Expand Up @@ -33,11 +33,7 @@ Item {
height: parent.height
Button{
anchors.horizontalCenter: parent.horizontalCenter
style: ButtonStyle {
roundedButton: true
bgColor: "#63ad32"
centerColor : "#c7ff94"
}

width: size.dp(256)
height: size.dp(86)
Text {
Expand All @@ -51,11 +47,6 @@ Item {
}

Button{
x: parent.width - (parent.width/3)
style: ButtonStyle {
roundedButton: true
bgColor: "#808080"
}
width: size.dp(86)
height: size.dp(86)
Text {
Expand All @@ -82,9 +73,7 @@ Item {

Button{
id: carrierSelection
style: ButtonStyle {
bgColor: "transparent"
}

width: parent.height
height: width

Expand All @@ -110,9 +99,7 @@ Item {
Button{
id: dialerBackspace
anchors.right: parent.right
style: ButtonStyle {
bgColor: "transparent"
}

width: parent.height
height: width

Expand All @@ -130,10 +117,10 @@ Item {
}

FontLoader {
source: "res/fontawesome-webfont.ttf"
source: "/usr/share/glacier-phone/res/fontawesome-webfont.ttf"
}
FontLoader {
source: "res/ionicons.ttf"
source: "/usr/share/glacier-phone/res/ionicons.ttf"
}

Component {
Expand All @@ -146,7 +133,7 @@ Item {
implicitHeight: size.dp(50)
implicitWidth: size.dp(320)
BorderImage {
source: "res/textinput.png"
source: "/usr/share/glacier-phone/res/textinput.png"
border.left: size.dp(8)
border.right: size.dp(8)
anchors.bottom: parent.bottom
Expand Down
5 changes: 1 addition & 4 deletions qml/Dialpad.qml
Expand Up @@ -22,10 +22,7 @@ Item{
Repeater {
model: dialerModel
delegate: Button {
style: ButtonStyle {
roundedButton: true
bgColor: "transparent"
}

Layout.fillWidth: true
Layout.fillHeight: true
onClicked: {
Expand Down
8 changes: 0 additions & 8 deletions rpm/glacier-phone.spec
@@ -1,13 +1,5 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
#

Name: glacier-phone

# >> macros
# << macros

%{!?qtc_qmake:%define qtc_qmake %qmake}
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
Expand Down