Merge lp:~mterry/dialer-app/no-ubuntu-colors into lp:dialer-app

Proposed by Michael Terry
Status: Needs review
Proposed branch: lp:~mterry/dialer-app/no-ubuntu-colors
Merge into: lp:dialer-app
Diff against target: 378 lines (+31/-38)
17 files modified
src/qml/DialerPage/CallButton.qml (+2/-2)
src/qml/DialerPage/CustomButton.qml (+1/-1)
src/qml/DialerPage/DialerPage.qml (+2/-2)
src/qml/DialerPage/KeypadButton.qml (+2/-2)
src/qml/DialerPage/KeypadEntry.qml (+3/-3)
src/qml/Dialogs/DisableFlightModeDialog.qml (+1/-2)
src/qml/Dialogs/NoDefaultSIMCardDialog.qml (+1/-3)
src/qml/Dialogs/NotificationDialog.qml (+0/-1)
src/qml/Dialogs/SetDefaultSIMCardDialog.qml (+1/-2)
src/qml/Dialogs/SimLockedDialog.qml (+3/-3)
src/qml/HistoryPage/HistoryDelegate.qml (+1/-1)
src/qml/HistoryPage/HistoryDetailsPage.qml (+2/-2)
src/qml/HistoryPage/SwipeItemDemo.qml (+2/-2)
src/qml/LiveCallPage/ConferenceCallDisplay.qml (+3/-3)
src/qml/LiveCallPage/HangupButton.qml (+2/-4)
src/qml/LiveCallPage/LiveCall.qml (+4/-4)
src/qml/LiveCallPage/MultiCallDisplay.qml (+1/-1)
To merge this branch: bzr merge lp:~mterry/dialer-app/no-ubuntu-colors
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Pending
Ubuntu Phablet Team Pending
Review via email: mp+297412@code.launchpad.net

Commit message

Fix colors to use theme colors more consistently.

Description of the change

See bug 1581047 for full rationale.

Here is a list of potentially noticeable changes:

- Orange buttons are now green.
- Some less important buttons that were orange are now neutral grey: DisableFlightModeDialog cancel, NoDefaultSIMCardDialog no and later, NotificationDialog close, and SetDefaultSIMCardDialog no.
- Call button went from a dark green to theme green.
- Hangup button no longer changes to half-opacity orange when pressed. Instead it simply changes to half-opacity theme red. Didn't seem necessary to also change color on top of opacity when pressing.
- KeypadEntry cursor went from orange to blue, the new theme color for text cursors.
- Unrelated to color, but I was right there, so... SimLockedDialog's Ok button is now spelled OK. (OK and Okay are words, Ok is not.)

And some less noticeable changes:

- Simply switching hard-coded names to theme equivalents (like darkGrey to backgroundSecondaryColor; same color, new name)
- Small changes like off-brand "red" to theme red

To post a comment you must log in.
532. By Michael Terry

Don't change color of button sublabels

Unmerged revisions

532. By Michael Terry

Don't change color of button sublabels

531. By Michael Terry

Don't use UbuntuColors

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/qml/DialerPage/CallButton.qml'
--- src/qml/DialerPage/CallButton.qml 2015-09-07 15:40:45 +0000
+++ src/qml/DialerPage/CallButton.qml 2016-06-15 13:28:04 +0000
@@ -22,7 +22,7 @@
22AbstractButton {22AbstractButton {
23 id: button23 id: button
2424
25 readonly property string defaultColor: "#0F8B21"25 readonly property string defaultColor: theme.palette.normal.positive
26 property alias iconRotation: icon.rotation26 property alias iconRotation: icon.rotation
27 property alias color: shape.color27 property alias color: shape.color
2828
@@ -49,7 +49,7 @@
49 width: units.gu(3)49 width: units.gu(3)
50 height: units.gu(3)50 height: units.gu(3)
51 name: "call-start"51 name: "call-start"
52 color: "white"52 color: theme.palette.normal.positiveText
53 z: 153 z: 1
54 }54 }
55}55}
5656
=== modified file 'src/qml/DialerPage/CustomButton.qml'
--- src/qml/DialerPage/CustomButton.qml 2015-09-07 15:40:45 +0000
+++ src/qml/DialerPage/CustomButton.qml 2016-06-15 13:28:04 +0000
@@ -27,7 +27,7 @@
27 Icon {27 Icon {
28 id: buttonIcon28 id: buttonIcon
29 anchors.centerIn: parent29 anchors.centerIn: parent
30 color: UbuntuColors.darkGrey30 color: theme.palette.normal.backgroundSecondaryText
31 }31 }
32 color: "transparent"32 color: "transparent"
33}33}
3434
=== modified file 'src/qml/DialerPage/DialerPage.qml'
--- src/qml/DialerPage/DialerPage.qml 2016-04-29 21:29:29 +0000
+++ src/qml/DialerPage/DialerPage.qml 2016-06-15 13:28:04 +0000
@@ -377,7 +377,7 @@
377 bottomMargin: units.gu(1)377 bottomMargin: units.gu(1)
378 }378 }
379 text: contactWatcher.isUnknown ? "" : contactWatcher.alias379 text: contactWatcher.isUnknown ? "" : contactWatcher.alias
380 color: UbuntuColors.darkGrey380 color: theme.palette.normal.backgroundSecondaryText
381 opacity: text != "" ? 1 : 0381 opacity: text != "" ? 1 : 0
382 fontSize: "small"382 fontSize: "small"
383 Behavior on opacity {383 Behavior on opacity {
@@ -495,7 +495,7 @@
495 PropertyAction {495 PropertyAction {
496 target: callButton496 target: callButton
497 property: "color"497 property: "color"
498 value: "red"498 value: theme.palette.normal.negative
499 }499 }
500500
501 ParallelAnimation {501 ParallelAnimation {
502502
=== modified file 'src/qml/DialerPage/KeypadButton.qml'
--- src/qml/DialerPage/KeypadButton.qml 2015-09-07 15:40:45 +0000
+++ src/qml/DialerPage/KeypadButton.qml 2016-06-15 13:28:04 +0000
@@ -71,7 +71,7 @@
71 height: paintedHeight71 height: paintedHeight
72 font.pixelSize: units.dp(30)72 font.pixelSize: units.dp(30)
73 verticalAlignment: Text.AlignTop73 verticalAlignment: Text.AlignTop
74 color: UbuntuColors.darkGrey74 color: theme.palette.normal.backgroundSecondaryText
75 }75 }
7676
77 Label {77 Label {
@@ -82,7 +82,7 @@
82 anchors.horizontalCenter: parent.horizontalCenter82 anchors.horizontalCenter: parent.horizontalCenter
83 horizontalAlignment: Text.AlignHCenter83 horizontalAlignment: Text.AlignHCenter
84 fontSize: "x-small"84 fontSize: "x-small"
85 color: UbuntuColors.darkGrey85 color: theme.palette.normal.backgroundSecondaryText
86 }86 }
8787
88 Icon {88 Icon {
8989
=== modified file 'src/qml/DialerPage/KeypadEntry.qml'
--- src/qml/DialerPage/KeypadEntry.qml 2016-04-29 21:10:46 +0000
+++ src/qml/DialerPage/KeypadEntry.qml 2016-06-15 13:28:04 +0000
@@ -102,7 +102,7 @@
102 horizontalAlignment: (text.length < 19 ? TextInput.AlignHCenter : TextInput.AlignRight)102 horizontalAlignment: (text.length < 19 ? TextInput.AlignHCenter : TextInput.AlignRight)
103 font.pixelSize: maximumFontSize103 font.pixelSize: maximumFontSize
104 font.family: "Ubuntu"104 font.family: "Ubuntu"
105 color: UbuntuColors.darkGrey105 color: theme.palette.normal.backgroundSecondaryText
106 focus: false106 focus: false
107 cursorVisible: true107 cursorVisible: true
108 clip: true108 clip: true
@@ -117,7 +117,7 @@
117 anchors.top: parent.top117 anchors.top: parent.top
118 anchors.bottom: parent.bottom118 anchors.bottom: parent.bottom
119 width: units.dp(3)119 width: units.dp(3)
120 color: "#DD4814"120 color: theme.palette.normal.positionText
121 visible: input.text !== ""121 visible: input.text !== ""
122 }122 }
123123
@@ -158,7 +158,7 @@
158 text: ""158 text: ""
159 font.pixelSize: input.maximumFontSize159 font.pixelSize: input.maximumFontSize
160 fontSizeMode: Text.HorizontalFit160 fontSizeMode: Text.HorizontalFit
161 color: UbuntuColors.darkGrey161 color: theme.palette.normal.backgroundSecondaryText
162 opacity: 0.9162 opacity: 0.9
163 horizontalAlignment: Text.AlignHCenter163 horizontalAlignment: Text.AlignHCenter
164 }164 }
165165
=== modified file 'src/qml/Dialogs/DisableFlightModeDialog.qml'
--- src/qml/Dialogs/DisableFlightModeDialog.qml 2015-09-07 15:40:45 +0000
+++ src/qml/Dialogs/DisableFlightModeDialog.qml 2016-06-15 13:28:04 +0000
@@ -36,7 +36,6 @@
36 Button {36 Button {
37 objectName: "disableFlightModeDialogCancelButton"37 objectName: "disableFlightModeDialogCancelButton"
38 text: i18n.tr("Cancel")38 text: i18n.tr("Cancel")
39 color: UbuntuColors.orange
40 onClicked: {39 onClicked: {
41 PopupUtils.close(dialogue)40 PopupUtils.close(dialogue)
42 Qt.inputMethod.hide()41 Qt.inputMethod.hide()
@@ -45,7 +44,7 @@
45 Button {44 Button {
46 objectName: "disableFlightModeDialogDisableButton"45 objectName: "disableFlightModeDialogDisableButton"
47 text: i18n.tr("Disable")46 text: i18n.tr("Disable")
48 color: UbuntuColors.orange47 color: theme.palette.normal.positive
49 onClicked: {48 onClicked: {
50 telepathyHelper.flightMode = false49 telepathyHelper.flightMode = false
51 PopupUtils.open(flightModeProgressDialog, mainView, {})50 PopupUtils.open(flightModeProgressDialog, mainView, {})
5251
=== modified file 'src/qml/Dialogs/NoDefaultSIMCardDialog.qml'
--- src/qml/Dialogs/NoDefaultSIMCardDialog.qml 2015-09-07 15:40:45 +0000
+++ src/qml/Dialogs/NoDefaultSIMCardDialog.qml 2016-06-15 13:28:04 +0000
@@ -38,7 +38,7 @@
38 model: telepathyHelper.activeAccounts38 model: telepathyHelper.activeAccounts
39 delegate: Label {39 delegate: Label {
40 text: modelData.displayName40 text: modelData.displayName
41 color: UbuntuColors.orange41 color: theme.palette.normal.positive
42 MouseArea {42 MouseArea {
43 anchors.fill: parent43 anchors.fill: parent
44 onClicked: {44 onClicked: {
@@ -68,7 +68,6 @@
68 Button {68 Button {
69 objectName: "noNoSimCardDefaultDialog"69 objectName: "noNoSimCardDefaultDialog"
70 text: i18n.tr("No")70 text: i18n.tr("No")
71 color: UbuntuColors.orange
72 onClicked: {71 onClicked: {
73 dualSimSettings.mainViewDontAskCount = 372 dualSimSettings.mainViewDontAskCount = 3
74 PopupUtils.close(dialogue)73 PopupUtils.close(dialogue)
@@ -78,7 +77,6 @@
78 Button {77 Button {
79 objectName: "laterNoSimCardDefaultDialog"78 objectName: "laterNoSimCardDefaultDialog"
80 text: i18n.tr("Later")79 text: i18n.tr("Later")
81 color: UbuntuColors.orange
82 onClicked: {80 onClicked: {
83 PopupUtils.close(dialogue)81 PopupUtils.close(dialogue)
84 dualSimSettings.mainViewDontAskCount++82 dualSimSettings.mainViewDontAskCount++
8583
=== modified file 'src/qml/Dialogs/NotificationDialog.qml'
--- src/qml/Dialogs/NotificationDialog.qml 2015-09-07 15:40:45 +0000
+++ src/qml/Dialogs/NotificationDialog.qml 2016-06-15 13:28:04 +0000
@@ -27,7 +27,6 @@
27 Button {27 Button {
28 objectName: "closeDialog"28 objectName: "closeDialog"
29 text: i18n.tr("Close")29 text: i18n.tr("Close")
30 color: UbuntuColors.orange
31 onClicked: {30 onClicked: {
32 PopupUtils.close(dialogue)31 PopupUtils.close(dialogue)
33 Qt.inputMethod.hide()32 Qt.inputMethod.hide()
3433
=== modified file 'src/qml/Dialogs/SetDefaultSIMCardDialog.qml'
--- src/qml/Dialogs/SetDefaultSIMCardDialog.qml 2015-09-07 15:40:45 +0000
+++ src/qml/Dialogs/SetDefaultSIMCardDialog.qml 2016-06-15 13:28:04 +0000
@@ -38,7 +38,6 @@
38 Button {38 Button {
39 objectName: "setDefaultSimCardDialogNo"39 objectName: "setDefaultSimCardDialogNo"
40 text: i18n.tr("No")40 text: i18n.tr("No")
41 color: UbuntuColors.orange
42 onClicked: {41 onClicked: {
43 PopupUtils.close(dialogue)42 PopupUtils.close(dialogue)
44 mainView.call(phoneNumber, true)43 mainView.call(phoneNumber, true)
@@ -48,7 +47,7 @@
48 Button {47 Button {
49 objectName: "setDefaultSimCardDialogYes"48 objectName: "setDefaultSimCardDialogYes"
50 text: i18n.tr("Yes")49 text: i18n.tr("Yes")
51 color: UbuntuColors.orange50 color: theme.palette.normal.positive
52 onClicked: {51 onClicked: {
53 telepathyHelper.setDefaultAccount(TelepathyHelper.Call, mainView.account)52 telepathyHelper.setDefaultAccount(TelepathyHelper.Call, mainView.account)
54 PopupUtils.close(dialogue)53 PopupUtils.close(dialogue)
5554
=== modified file 'src/qml/Dialogs/SimLockedDialog.qml'
--- src/qml/Dialogs/SimLockedDialog.qml 2016-04-29 21:29:29 +0000
+++ src/qml/Dialogs/SimLockedDialog.qml 2016-06-15 13:28:04 +0000
@@ -47,8 +47,8 @@
47 anchors.horizontalCenter: parent.horizontalCenter47 anchors.horizontalCenter: parent.horizontalCenter
48 Button {48 Button {
49 objectName: "okSimLockedDialog"49 objectName: "okSimLockedDialog"
50 text: i18n.tr("Ok")50 text: i18n.tr("OK")
51 color: UbuntuColors.orange51 color: theme.palette.normal.positive
52 onClicked: {52 onClicked: {
53 PopupUtils.close(dialogue)53 PopupUtils.close(dialogue)
54 }54 }
@@ -57,7 +57,7 @@
57 /*Button {57 /*Button {
58 objectName: "unlockSimLockedDialog"58 objectName: "unlockSimLockedDialog"
59 text: i18n.tr("Unlock")59 text: i18n.tr("Unlock")
60 color: UbuntuColors.orange60 color: theme.palette.normal.positive
61 onClicked: {61 onClicked: {
62 PopupUtils.close(dialogue)62 PopupUtils.close(dialogue)
63 telepathyHelper.unlockSimCards()63 telepathyHelper.unlockSimCards()
6464
=== modified file 'src/qml/HistoryPage/HistoryDelegate.qml'
--- src/qml/HistoryPage/HistoryDelegate.qml 2016-02-11 17:58:29 +0000
+++ src/qml/HistoryPage/HistoryDelegate.qml 2016-06-15 13:28:04 +0000
@@ -177,7 +177,7 @@
177 return phoneNumber177 return phoneNumber
178 }178 }
179 elide: Text.ElideRight179 elide: Text.ElideRight
180 color: UbuntuColors.darkGrey180 color: theme.palette.normal.backgroundSecondaryText
181 }181 }
182182
183 // this item has the width of the text above. It is used to be able to align183 // this item has the width of the text above. It is used to be able to align
184184
=== modified file 'src/qml/HistoryPage/HistoryDetailsPage.qml'
--- src/qml/HistoryPage/HistoryDetailsPage.qml 2016-02-11 17:58:29 +0000
+++ src/qml/HistoryPage/HistoryDetailsPage.qml 2016-06-15 13:28:04 +0000
@@ -147,7 +147,7 @@
147 fontSize: "medium"147 fontSize: "medium"
148 text: getFormattedPhoneLabel(phoneNumber)148 text: getFormattedPhoneLabel(phoneNumber)
149 elide: Text.ElideRight149 elide: Text.ElideRight
150 color: UbuntuColors.darkGrey150 color: theme.palette.normal.backgroundSecondaryText
151 height: units.gu(2)151 height: units.gu(2)
152 }152 }
153153
@@ -276,7 +276,7 @@
276 leftMargin: units.gu(1)276 leftMargin: units.gu(1)
277 verticalCenter: parent.verticalCenter277 verticalCenter: parent.verticalCenter
278 }278 }
279 color: UbuntuColors.darkGrey279 color: theme.palette.normal.backgroundSecondaryText
280 verticalAlignment: Qt.AlignVCenter280 verticalAlignment: Qt.AlignVCenter
281 MouseArea {281 MouseArea {
282 anchors.fill:parent282 anchors.fill:parent
283283
=== modified file 'src/qml/HistoryPage/SwipeItemDemo.qml'
--- src/qml/HistoryPage/SwipeItemDemo.qml 2016-02-11 17:58:29 +0000
+++ src/qml/HistoryPage/SwipeItemDemo.qml 2016-06-15 13:28:04 +0000
@@ -123,7 +123,7 @@
123 fontSize: "medium"123 fontSize: "medium"
124 text: "(541) 754-3010"124 text: "(541) 754-3010"
125 elide: Text.ElideRight125 elide: Text.ElideRight
126 color: UbuntuColors.darkGrey126 color: theme.palette.normal.backgroundSecondaryText
127 }127 }
128128
129 // this item has the width of the text above. It is used to be able to align129 // this item has the width of the text above. It is used to be able to align
@@ -251,7 +251,7 @@
251 bottomMargin: units.gu(9)251 bottomMargin: units.gu(9)
252 }252 }
253 width: units.gu(17)253 width: units.gu(17)
254 strokeColor: UbuntuColors.green254 strokeColor: theme.palette.normal.positive
255 text: i18n.tr("Got it")255 text: i18n.tr("Got it")
256 enabled: !dismissAnimation.running256 enabled: !dismissAnimation.running
257 onClicked: dismissAnimation.start()257 onClicked: dismissAnimation.start()
258258
=== modified file 'src/qml/LiveCallPage/ConferenceCallDisplay.qml'
--- src/qml/LiveCallPage/ConferenceCallDisplay.qml 2016-02-11 17:58:29 +0000
+++ src/qml/LiveCallPage/ConferenceCallDisplay.qml 2016-06-15 13:28:04 +0000
@@ -84,12 +84,12 @@
84 id: body84 id: body
85 anchors.fill: parent85 anchors.fill: parent
8686
87 color: "red"87 color: theme.palette.normal.negative
88 clip: true88 clip: true
8989
90 Icon {90 Icon {
91 name: "call-end"91 name: "call-end"
92 color: "white"92 color: theme.palette.normal.negativeText
93 anchors {93 anchors {
94 top: parent.top94 top: parent.top
95 bottom: parent.bottom95 bottom: parent.bottom
@@ -136,7 +136,7 @@
136 anchors {136 anchors {
137 centerIn: parent137 centerIn: parent
138 }138 }
139 color: UbuntuColors.darkGrey139 color: theme.palette.normal.backgroundSecondaryText
140 text: i18n.tr("Private")140 text: i18n.tr("Private")
141 font.weight: Font.DemiBold141 font.weight: Font.DemiBold
142 verticalAlignment: Text.AlignVCenter142 verticalAlignment: Text.AlignVCenter
143143
=== modified file 'src/qml/LiveCallPage/HangupButton.qml'
--- src/qml/LiveCallPage/HangupButton.qml 2015-09-07 15:40:45 +0000
+++ src/qml/LiveCallPage/HangupButton.qml 2016-06-15 13:28:04 +0000
@@ -33,9 +33,7 @@
3333
34 UbuntuShape {34 UbuntuShape {
35 anchors.fill: parent35 anchors.fill: parent
36 //color: button.pressed ? "#cd3804" : "#dd4814"36 backgroundColor: theme.palette.normal.negative
37 color: button.pressed ? "#dd4814" : "red"
38 gradientColor: "#e24b3a"
39 radius: "medium"37 radius: "medium"
40 }38 }
4139
@@ -44,7 +42,7 @@
44 width: units.gu(3)42 width: units.gu(3)
45 height: units.gu(3)43 height: units.gu(3)
46 name: "call-end"44 name: "call-end"
47 color: "white"45 color: theme.palette.normal.negativeText
48 z: 146 z: 1
49 }47 }
50}48}
5149
=== modified file 'src/qml/LiveCallPage/LiveCall.qml'
--- src/qml/LiveCallPage/LiveCall.qml 2016-02-11 17:58:29 +0000
+++ src/qml/LiveCallPage/LiveCall.qml 2016-06-15 13:28:04 +0000
@@ -198,7 +198,7 @@
198 }198 }
199 PropertyChanges {199 PropertyChanges {
200 target: dtmfButton200 target: dtmfButton
201 iconColor: UbuntuColors.green201 iconColor: theme.palette.normal.positive
202 }202 }
203 },203 },
204204
@@ -458,7 +458,7 @@
458 }458 }
459 text: caller459 text: caller
460 fontSize: "large"460 fontSize: "large"
461 color: UbuntuColors.darkGrey461 color: theme.palette.normal.backgroundSecondaryText
462 }462 }
463463
464 MultiCallDisplay {464 MultiCallDisplay {
@@ -532,7 +532,7 @@
532532
533 text: i18n.tr("Switch calls")533 text: i18n.tr("Switch calls")
534 color: mainView.backgroundColor534 color: mainView.backgroundColor
535 strokeColor: UbuntuColors.green535 strokeColor: theme.palette.normal.positive
536 onClicked: {536 onClicked: {
537 changeCallHoldingStatus(callManager.foregroundCall, true)537 changeCallHoldingStatus(callManager.foregroundCall, true)
538 }538 }
@@ -547,7 +547,7 @@
547547
548 text: i18n.tr("Merge calls")548 text: i18n.tr("Merge calls")
549 color: mainView.backgroundColor549 color: mainView.backgroundColor
550 strokeColor: UbuntuColors.green550 strokeColor: theme.palette.normal.positive
551 onClicked: {551 onClicked: {
552 callManager.mergeCalls(callManager.calls[0], callManager.calls[1])552 callManager.mergeCalls(callManager.calls[0], callManager.calls[1])
553 }553 }
554554
=== modified file 'src/qml/LiveCallPage/MultiCallDisplay.qml'
--- src/qml/LiveCallPage/MultiCallDisplay.qml 2015-09-07 15:40:45 +0000
+++ src/qml/LiveCallPage/MultiCallDisplay.qml 2016-06-15 13:28:04 +0000
@@ -121,7 +121,7 @@
121 rightMargin: units.gu(2)121 rightMargin: units.gu(2)
122 verticalCenter: durationLabel.verticalCenter122 verticalCenter: durationLabel.verticalCenter
123 }123 }
124 color: callEntry.held ? UbuntuColors.red : UbuntuColors.green124 color: callEntry.held ? theme.palette.normal.negative : theme.palette.normal.positive
125 text: {125 text: {
126 if (callEntry.dialing) {126 if (callEntry.dialing) {
127 return ""127 return ""

Subscribers

People subscribed via source and target branches