Merge lp:~mterry/webbrowser-app/less-ubuntucolors into lp:webbrowser-app
- less-ubuntucolors
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Olivier Tilloy | ||||
Approved revision: | 1458 | ||||
Merged at revision: | 1519 | ||||
Proposed branch: | lp:~mterry/webbrowser-app/less-ubuntucolors | ||||
Merge into: | lp:webbrowser-app | ||||
Diff against target: |
468 lines (+42/-44) 22 files modified
src/app/AlertDialog.qml (+2/-1) src/app/AuthenticationDialog.qml (+2/-3) src/app/BeforeUnloadDialog.qml (+2/-1) src/app/CertificateVerificationDialog.qml (+3/-3) src/app/ConfirmDialog.qml (+2/-1) src/app/GeolocationPermissionRequest.qml (+2/-3) src/app/HttpAuthenticationDialog.qml (+2/-3) src/app/InvalidCertificateErrorSheet.qml (+2/-2) src/app/MediaAccessDialog.qml (+1/-2) src/app/PromptDialog.qml (+2/-3) src/app/webbrowser/BookmarkOptions.qml (+2/-2) src/app/webbrowser/BookmarksFoldersViewWide.qml (+2/-2) src/app/webbrowser/DownloadDelegate.qml (+2/-2) src/app/webbrowser/HistorySectionDelegate.qml (+2/-2) src/app/webbrowser/HistoryViewWide.qml (+1/-1) src/app/webbrowser/IndeterminateProgressBar.qml (+2/-2) src/app/webbrowser/LeavePrivateModeDialog.qml (+2/-2) src/app/webbrowser/SadTab.qml (+2/-2) src/app/webbrowser/SettingsPage.qml (+1/-1) src/app/webbrowser/UrlDelegate.qml (+2/-2) src/app/webbrowser/UrlDelegateWide.qml (+2/-2) src/app/webcontainer/SadPage.qml (+2/-2) |
||||
To merge this branch: | bzr merge lp:~mterry/webbrowser-app/less-ubuntucolors | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
system-apps-ci-bot | continuous-integration | Approve | |
Olivier Tilloy | Approve | ||
Review via email: mp+295412@code.launchpad.net |
Commit message
Use less hard-coded colors in favor of theme colors.
- We were using some off-brand colors like "green" instead of UbuntuColors.green. Which are now fixed to the theme 'positive' color in this branch anyway.
- We were using a lot of orange in places we shouldn't (mostly for recommended buttons, some selected states, and in one place for a progress indicator).
- We were frequently specifying the color of a neutral button, but never the same way twice (coolGrey, warmGrey, lightGrey). No need, the default button color should be fine.
- And I fixed a few of the instances of UbuntuColors.
Description of the change
There are still a lot of UbuntuColor.
And I left the "this page is bookmarked" icon fill color as UbuntuColors.
Olivier Tilloy (osomon) wrote : | # |
- 1458. By Michael Terry
-
Add a few more button colors and update copyright years
Michael Terry (mterry) wrote : | # |
- Made the OK button green in ConfirmDialog and AlertDialog.
- Looking at BeforeUnloadDialog, I thought it made sense to make "Leave" red and keep "Stay" grey. Let me know if you don't like this.
- For the history/bookmark views... at least in the current theme shipped today, selected.
- Updated copyrights.
Olivier Tilloy (osomon) wrote : | # |
Looks good to me, and your point about positionText makes sense to me.
system-apps-ci-bot (system-apps-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:1458
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Preview Diff
1 | === modified file 'src/app/AlertDialog.qml' | |||
2 | --- src/app/AlertDialog.qml 2015-08-10 15:22:00 +0000 | |||
3 | +++ src/app/AlertDialog.qml 2016-05-23 13:25:57 +0000 | |||
4 | @@ -1,5 +1,5 @@ | |||
5 | 1 | /* | 1 | /* |
7 | 2 | * Copyright 2013-2015 Canonical Ltd. | 2 | * Copyright 2013-2016 Canonical Ltd. |
8 | 3 | * | 3 | * |
9 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
10 | 5 | * | 5 | * |
11 | @@ -24,6 +24,7 @@ | |||
12 | 24 | 24 | ||
13 | 25 | Button { | 25 | Button { |
14 | 26 | text: i18n.tr("OK") | 26 | text: i18n.tr("OK") |
15 | 27 | color: theme.palette.normal.positive | ||
16 | 27 | onClicked: model.accept() | 28 | onClicked: model.accept() |
17 | 28 | } | 29 | } |
18 | 29 | } | 30 | } |
19 | 30 | 31 | ||
20 | === modified file 'src/app/AuthenticationDialog.qml' | |||
21 | --- src/app/AuthenticationDialog.qml 2015-08-10 15:22:00 +0000 | |||
22 | +++ src/app/AuthenticationDialog.qml 2016-05-23 13:25:57 +0000 | |||
23 | @@ -1,5 +1,5 @@ | |||
24 | 1 | /* | 1 | /* |
26 | 2 | * Copyright 2013-2015 Canonical Ltd. | 2 | * Copyright 2013-2016 Canonical Ltd. |
27 | 3 | * | 3 | * |
28 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
29 | 5 | * | 5 | * |
30 | @@ -45,13 +45,12 @@ | |||
31 | 45 | 45 | ||
32 | 46 | Button { | 46 | Button { |
33 | 47 | text: i18n.tr("OK") | 47 | text: i18n.tr("OK") |
35 | 48 | color: "green" | 48 | color: theme.palette.normal.positive |
36 | 49 | onClicked: accept() | 49 | onClicked: accept() |
37 | 50 | } | 50 | } |
38 | 51 | 51 | ||
39 | 52 | Button { | 52 | Button { |
40 | 53 | text: i18n.tr("Cancel") | 53 | text: i18n.tr("Cancel") |
41 | 54 | color: UbuntuColors.coolGrey | ||
42 | 55 | onClicked: model.reject() | 54 | onClicked: model.reject() |
43 | 56 | } | 55 | } |
44 | 57 | 56 | ||
45 | 58 | 57 | ||
46 | === modified file 'src/app/BeforeUnloadDialog.qml' | |||
47 | --- src/app/BeforeUnloadDialog.qml 2015-08-10 15:22:00 +0000 | |||
48 | +++ src/app/BeforeUnloadDialog.qml 2016-05-23 13:25:57 +0000 | |||
49 | @@ -1,5 +1,5 @@ | |||
50 | 1 | /* | 1 | /* |
52 | 2 | * Copyright 2014-2015 Canonical Ltd. | 2 | * Copyright 2014-2016 Canonical Ltd. |
53 | 3 | * | 3 | * |
54 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
55 | 5 | * | 5 | * |
56 | @@ -24,6 +24,7 @@ | |||
57 | 24 | 24 | ||
58 | 25 | Button { | 25 | Button { |
59 | 26 | text: i18n.tr("Leave") | 26 | text: i18n.tr("Leave") |
60 | 27 | color: theme.palette.normal.negative | ||
61 | 27 | onClicked: model.accept() | 28 | onClicked: model.accept() |
62 | 28 | } | 29 | } |
63 | 29 | 30 | ||
64 | 30 | 31 | ||
65 | === modified file 'src/app/CertificateVerificationDialog.qml' | |||
66 | --- src/app/CertificateVerificationDialog.qml 2015-08-10 15:22:00 +0000 | |||
67 | +++ src/app/CertificateVerificationDialog.qml 2016-05-23 13:25:57 +0000 | |||
68 | @@ -1,5 +1,5 @@ | |||
69 | 1 | /* | 1 | /* |
71 | 2 | * Copyright 2013-2015 Canonical Ltd. | 2 | * Copyright 2013-2016 Canonical Ltd. |
72 | 3 | * | 3 | * |
73 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
74 | 5 | * | 5 | * |
75 | @@ -27,13 +27,13 @@ | |||
76 | 27 | 27 | ||
77 | 28 | Button { | 28 | Button { |
78 | 29 | text: i18n.tr("Proceed anyway") | 29 | text: i18n.tr("Proceed anyway") |
80 | 30 | color: "red" | 30 | color: theme.palette.normal.negative |
81 | 31 | onClicked: model.accept() | 31 | onClicked: model.accept() |
82 | 32 | } | 32 | } |
83 | 33 | 33 | ||
84 | 34 | Button { | 34 | Button { |
85 | 35 | text: i18n.tr("Back to safety") | 35 | text: i18n.tr("Back to safety") |
87 | 36 | color: "green" | 36 | color: theme.palette.normal.positive |
88 | 37 | onClicked: model.reject() | 37 | onClicked: model.reject() |
89 | 38 | } | 38 | } |
90 | 39 | 39 | ||
91 | 40 | 40 | ||
92 | === modified file 'src/app/ConfirmDialog.qml' | |||
93 | --- src/app/ConfirmDialog.qml 2015-08-10 15:22:00 +0000 | |||
94 | +++ src/app/ConfirmDialog.qml 2016-05-23 13:25:57 +0000 | |||
95 | @@ -1,5 +1,5 @@ | |||
96 | 1 | /* | 1 | /* |
98 | 2 | * Copyright 2013-2015 Canonical Ltd. | 2 | * Copyright 2013-2016 Canonical Ltd. |
99 | 3 | * | 3 | * |
100 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
101 | 5 | * | 5 | * |
102 | @@ -24,6 +24,7 @@ | |||
103 | 24 | 24 | ||
104 | 25 | Button { | 25 | Button { |
105 | 26 | text: i18n.tr("OK") | 26 | text: i18n.tr("OK") |
106 | 27 | color: theme.palette.normal.positive | ||
107 | 27 | onClicked: model.accept() | 28 | onClicked: model.accept() |
108 | 28 | } | 29 | } |
109 | 29 | 30 | ||
110 | 30 | 31 | ||
111 | === modified file 'src/app/GeolocationPermissionRequest.qml' | |||
112 | --- src/app/GeolocationPermissionRequest.qml 2015-09-29 13:09:26 +0000 | |||
113 | +++ src/app/GeolocationPermissionRequest.qml 2016-05-23 13:25:57 +0000 | |||
114 | @@ -1,5 +1,5 @@ | |||
115 | 1 | /* | 1 | /* |
117 | 2 | * Copyright 2014-2015 Canonical Ltd. | 2 | * Copyright 2014-2016 Canonical Ltd. |
118 | 3 | * | 3 | * |
119 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
120 | 5 | * | 5 | * |
121 | @@ -31,7 +31,6 @@ | |||
122 | 31 | Button { | 31 | Button { |
123 | 32 | objectName: "deny" | 32 | objectName: "deny" |
124 | 33 | text: i18n.tr("Deny") | 33 | text: i18n.tr("Deny") |
125 | 34 | color: UbuntuColors.warmGrey | ||
126 | 35 | onClicked: { | 34 | onClicked: { |
127 | 36 | request.deny() | 35 | request.deny() |
128 | 37 | PopupUtils.close(dialog) | 36 | PopupUtils.close(dialog) |
129 | @@ -41,7 +40,7 @@ | |||
130 | 41 | Button { | 40 | Button { |
131 | 42 | objectName: "allow" | 41 | objectName: "allow" |
132 | 43 | text: i18n.tr("Allow") | 42 | text: i18n.tr("Allow") |
134 | 44 | color: UbuntuColors.orange | 43 | color: theme.palette.normal.positive |
135 | 45 | onClicked: { | 44 | onClicked: { |
136 | 46 | request.allow() | 45 | request.allow() |
137 | 47 | PopupUtils.close(dialog) | 46 | PopupUtils.close(dialog) |
138 | 48 | 47 | ||
139 | === modified file 'src/app/HttpAuthenticationDialog.qml' | |||
140 | --- src/app/HttpAuthenticationDialog.qml 2015-08-12 16:11:24 +0000 | |||
141 | +++ src/app/HttpAuthenticationDialog.qml 2016-05-23 13:25:57 +0000 | |||
142 | @@ -1,5 +1,5 @@ | |||
143 | 1 | /* | 1 | /* |
145 | 2 | * Copyright 2015 Canonical Ltd. | 2 | * Copyright 2015-2016 Canonical Ltd. |
146 | 3 | * | 3 | * |
147 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
148 | 5 | * | 5 | * |
149 | @@ -57,7 +57,7 @@ | |||
150 | 57 | Button { | 57 | Button { |
151 | 58 | objectName: "allow" | 58 | objectName: "allow" |
152 | 59 | text: i18n.tr("OK") | 59 | text: i18n.tr("OK") |
154 | 60 | color: UbuntuColors.green | 60 | color: theme.palette.normal.positive |
155 | 61 | onClicked: { | 61 | onClicked: { |
156 | 62 | request.allow(usernameInput.text, passwordInput.text) | 62 | request.allow(usernameInput.text, passwordInput.text) |
157 | 63 | PopupUtils.close(dialog) | 63 | PopupUtils.close(dialog) |
158 | @@ -67,7 +67,6 @@ | |||
159 | 67 | Button { | 67 | Button { |
160 | 68 | objectName: "deny" | 68 | objectName: "deny" |
161 | 69 | text: i18n.tr("Cancel") | 69 | text: i18n.tr("Cancel") |
162 | 70 | color: UbuntuColors.coolGrey | ||
163 | 71 | onClicked: { | 70 | onClicked: { |
164 | 72 | request.deny() | 71 | request.deny() |
165 | 73 | PopupUtils.close(dialog) | 72 | PopupUtils.close(dialog) |
166 | 74 | 73 | ||
167 | === modified file 'src/app/InvalidCertificateErrorSheet.qml' | |||
168 | --- src/app/InvalidCertificateErrorSheet.qml 2015-08-10 15:22:00 +0000 | |||
169 | +++ src/app/InvalidCertificateErrorSheet.qml 2016-05-23 13:25:57 +0000 | |||
170 | @@ -1,5 +1,5 @@ | |||
171 | 1 | /* | 1 | /* |
173 | 2 | * Copyright 2014-2015 Canonical Ltd. | 2 | * Copyright 2014-2016 Canonical Ltd. |
174 | 3 | * | 3 | * |
175 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
176 | 5 | * | 5 | * |
177 | @@ -175,7 +175,7 @@ | |||
178 | 175 | certificateError.deny() | 175 | certificateError.deny() |
179 | 176 | denied() | 176 | denied() |
180 | 177 | } | 177 | } |
182 | 178 | color: UbuntuColors.orange | 178 | color: theme.palette.normal.positive |
183 | 179 | } | 179 | } |
184 | 180 | } | 180 | } |
185 | 181 | } | 181 | } |
186 | 182 | 182 | ||
187 | === modified file 'src/app/MediaAccessDialog.qml' | |||
188 | --- src/app/MediaAccessDialog.qml 2016-04-08 17:05:47 +0000 | |||
189 | +++ src/app/MediaAccessDialog.qml 2016-05-23 13:25:57 +0000 | |||
190 | @@ -70,7 +70,7 @@ | |||
191 | 70 | Button { | 70 | Button { |
192 | 71 | objectName: "mediaAccessDialog.allowButton" | 71 | objectName: "mediaAccessDialog.allowButton" |
193 | 72 | text: i18n.tr("Yes") | 72 | text: i18n.tr("Yes") |
195 | 73 | color: UbuntuColors.green | 73 | color: theme.palette.normal.positive |
196 | 74 | width: units.gu(10) | 74 | width: units.gu(10) |
197 | 75 | onClicked: { | 75 | onClicked: { |
198 | 76 | request.allow() | 76 | request.allow() |
199 | @@ -81,7 +81,6 @@ | |||
200 | 81 | Button { | 81 | Button { |
201 | 82 | objectName: "mediaAccessDialog.denyButton" | 82 | objectName: "mediaAccessDialog.denyButton" |
202 | 83 | text: i18n.tr("No") | 83 | text: i18n.tr("No") |
203 | 84 | color: UbuntuColors.lightGrey | ||
204 | 85 | width: units.gu(10) | 84 | width: units.gu(10) |
205 | 86 | onClicked: { | 85 | onClicked: { |
206 | 87 | request.deny() | 86 | request.deny() |
207 | 88 | 87 | ||
208 | === modified file 'src/app/PromptDialog.qml' | |||
209 | --- src/app/PromptDialog.qml 2015-08-10 15:22:00 +0000 | |||
210 | +++ src/app/PromptDialog.qml 2016-05-23 13:25:57 +0000 | |||
211 | @@ -1,5 +1,5 @@ | |||
212 | 1 | /* | 1 | /* |
214 | 2 | * Copyright 2013-2015 Canonical Ltd. | 2 | * Copyright 2013-2016 Canonical Ltd. |
215 | 3 | * | 3 | * |
216 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
217 | 5 | * | 5 | * |
218 | @@ -30,13 +30,12 @@ | |||
219 | 30 | 30 | ||
220 | 31 | Button { | 31 | Button { |
221 | 32 | text: i18n.tr("OK") | 32 | text: i18n.tr("OK") |
223 | 33 | color: "green" | 33 | color: theme.palette.normal.positive |
224 | 34 | onClicked: model.accept(input.text) | 34 | onClicked: model.accept(input.text) |
225 | 35 | } | 35 | } |
226 | 36 | 36 | ||
227 | 37 | Button { | 37 | Button { |
228 | 38 | text: i18n.tr("Cancel") | 38 | text: i18n.tr("Cancel") |
229 | 39 | color: UbuntuColors.coolGrey | ||
230 | 40 | onClicked: model.reject() | 39 | onClicked: model.reject() |
231 | 41 | } | 40 | } |
232 | 42 | 41 | ||
233 | 43 | 42 | ||
234 | === modified file 'src/app/webbrowser/BookmarkOptions.qml' | |||
235 | --- src/app/webbrowser/BookmarkOptions.qml 2016-02-17 18:27:31 +0000 | |||
236 | +++ src/app/webbrowser/BookmarkOptions.qml 2016-05-23 13:25:57 +0000 | |||
237 | @@ -99,7 +99,7 @@ | |||
238 | 99 | objectName: "bookmarkOptions.okButton" | 99 | objectName: "bookmarkOptions.okButton" |
239 | 100 | anchors.right: parent.right | 100 | anchors.right: parent.right |
240 | 101 | text: i18n.tr("OK") | 101 | text: i18n.tr("OK") |
242 | 102 | color: UbuntuColors.green | 102 | color: theme.palette.normal.positive |
243 | 103 | onClicked: bookmarkOptions.destroy() | 103 | onClicked: bookmarkOptions.destroy() |
244 | 104 | } | 104 | } |
245 | 105 | } | 105 | } |
246 | @@ -152,7 +152,7 @@ | |||
247 | 152 | } | 152 | } |
248 | 153 | text: i18n.tr("Save") | 153 | text: i18n.tr("Save") |
249 | 154 | enabled: folderTextField.text | 154 | enabled: folderTextField.text |
251 | 155 | color: UbuntuColors.green | 155 | color: theme.palette.normal.positive |
252 | 156 | // Button took focus on press what makes the keyboard be | 156 | // Button took focus on press what makes the keyboard be |
253 | 157 | // dismissed and that could make the Button moves between the | 157 | // dismissed and that could make the Button moves between the |
254 | 158 | // press and the release. Button onClicked is not triggered | 158 | // press and the release. Button onClicked is not triggered |
255 | 159 | 159 | ||
256 | === modified file 'src/app/webbrowser/BookmarksFoldersViewWide.qml' | |||
257 | --- src/app/webbrowser/BookmarksFoldersViewWide.qml 2016-04-15 11:27:13 +0000 | |||
258 | +++ src/app/webbrowser/BookmarksFoldersViewWide.qml 2016-05-23 13:25:57 +0000 | |||
259 | @@ -90,7 +90,7 @@ | |||
260 | 90 | readonly property bool isAllBookmarksFolder: folder.length === 0 | 90 | readonly property bool isAllBookmarksFolder: folder.length === 0 |
261 | 91 | readonly property bool isCurrentDropTarget: dropArea.containsDrag && dropArea.drag.source.folder !== folder | 91 | readonly property bool isCurrentDropTarget: dropArea.containsDrag && dropArea.drag.source.folder !== folder |
262 | 92 | 92 | ||
264 | 93 | color: isCurrentDropTarget ? "green" : "transparent" | 93 | color: isCurrentDropTarget ? theme.palette.normal.positive : "transparent" |
265 | 94 | 94 | ||
266 | 95 | Label { | 95 | Label { |
267 | 96 | anchors { | 96 | anchors { |
268 | @@ -103,7 +103,7 @@ | |||
269 | 103 | 103 | ||
270 | 104 | fontSize: "small" | 104 | fontSize: "small" |
271 | 105 | text: isAllBookmarksFolder ? i18n.tr("All Bookmarks") : folderItem.name | 105 | text: isAllBookmarksFolder ? i18n.tr("All Bookmarks") : folderItem.name |
273 | 106 | color: (isActiveFolder && !folders.activeFocus) ? UbuntuColors.orange : UbuntuColors.darkGrey | 106 | color: (isActiveFolder && !folders.activeFocus) ? theme.palette.normal.positionText : theme.palette.normal.backgroundSecondaryText |
274 | 107 | } | 107 | } |
275 | 108 | 108 | ||
276 | 109 | onClicked: folders.currentIndex = index | 109 | onClicked: folders.currentIndex = index |
277 | 110 | 110 | ||
278 | === modified file 'src/app/webbrowser/DownloadDelegate.qml' | |||
279 | --- src/app/webbrowser/DownloadDelegate.qml 2016-02-01 12:06:20 +0000 | |||
280 | +++ src/app/webbrowser/DownloadDelegate.qml 2016-05-23 13:25:57 +0000 | |||
281 | @@ -145,7 +145,7 @@ | |||
282 | 145 | height: width | 145 | height: width |
283 | 146 | anchors.verticalCenter: parent.verticalCenter | 146 | anchors.verticalCenter: parent.verticalCenter |
284 | 147 | name: "dialog-warning-symbolic" | 147 | name: "dialog-warning-symbolic" |
286 | 148 | color: UbuntuColors.red | 148 | color: theme.palette.normal.negative |
287 | 149 | } | 149 | } |
288 | 150 | 150 | ||
289 | 151 | Label { | 151 | Label { |
290 | @@ -154,7 +154,7 @@ | |||
291 | 154 | anchors.leftMargin: units.gu(1) | 154 | anchors.leftMargin: units.gu(1) |
292 | 155 | anchors.verticalCenter: errorIcon.verticalCenter | 155 | anchors.verticalCenter: errorIcon.verticalCenter |
293 | 156 | fontSize: "x-small" | 156 | fontSize: "x-small" |
295 | 157 | color: UbuntuColors.red | 157 | color: theme.palette.normal.negative |
296 | 158 | text: errorMessage !== "" ? errorMessage | 158 | text: errorMessage !== "" ? errorMessage |
297 | 159 | : (incomplete && download === undefined) ? i18n.tr("Download failed") | 159 | : (incomplete && download === undefined) ? i18n.tr("Download failed") |
298 | 160 | : "" | 160 | : "" |
299 | 161 | 161 | ||
300 | === modified file 'src/app/webbrowser/HistorySectionDelegate.qml' | |||
301 | --- src/app/webbrowser/HistorySectionDelegate.qml 2015-08-11 14:56:25 +0000 | |||
302 | +++ src/app/webbrowser/HistorySectionDelegate.qml 2016-05-23 13:25:57 +0000 | |||
303 | @@ -1,5 +1,5 @@ | |||
304 | 1 | /* | 1 | /* |
306 | 2 | * Copyright 2014-2015 Canonical Ltd. | 2 | * Copyright 2014-2016 Canonical Ltd. |
307 | 3 | * | 3 | * |
308 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
309 | 5 | * | 5 | * |
310 | @@ -52,7 +52,7 @@ | |||
311 | 52 | } | 52 | } |
312 | 53 | 53 | ||
313 | 54 | fontSize: "small" | 54 | fontSize: "small" |
315 | 55 | color: UbuntuColors.darkGrey | 55 | color: theme.palette.normal.backgroundSecondaryText |
316 | 56 | } | 56 | } |
317 | 57 | 57 | ||
318 | 58 | ListItem.ThinDivider { | 58 | ListItem.ThinDivider { |
319 | 59 | 59 | ||
320 | === modified file 'src/app/webbrowser/HistoryViewWide.qml' | |||
321 | --- src/app/webbrowser/HistoryViewWide.qml 2016-05-05 11:11:01 +0000 | |||
322 | +++ src/app/webbrowser/HistoryViewWide.qml 2016-05-23 13:25:57 +0000 | |||
323 | @@ -254,7 +254,7 @@ | |||
324 | 254 | } | 254 | } |
325 | 255 | 255 | ||
326 | 256 | fontSize: "small" | 256 | fontSize: "small" |
328 | 257 | color: (!lastVisitDateListView.activeFocus && lastVisitDateDelegate.ListView.isCurrentItem) ? UbuntuColors.orange : UbuntuColors.darkGrey | 257 | color: (!lastVisitDateListView.activeFocus && lastVisitDateDelegate.ListView.isCurrentItem) ? theme.palette.normal.positionText : theme.palette.normal.backgroundSecondaryText |
329 | 258 | } | 258 | } |
330 | 259 | 259 | ||
331 | 260 | onClicked: ListView.view.currentIndex = index | 260 | onClicked: ListView.view.currentIndex = index |
332 | 261 | 261 | ||
333 | === modified file 'src/app/webbrowser/IndeterminateProgressBar.qml' | |||
334 | --- src/app/webbrowser/IndeterminateProgressBar.qml 2015-10-01 11:33:36 +0000 | |||
335 | +++ src/app/webbrowser/IndeterminateProgressBar.qml 2016-05-23 13:25:57 +0000 | |||
336 | @@ -1,5 +1,5 @@ | |||
337 | 1 | /* | 1 | /* |
339 | 2 | * Copyright 2015 Canonical Ltd. | 2 | * Copyright 2015-2016 Canonical Ltd. |
340 | 3 | * | 3 | * |
341 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
342 | 5 | * | 5 | * |
343 | @@ -35,7 +35,7 @@ | |||
344 | 35 | anchors.left: parent.left | 35 | anchors.left: parent.left |
345 | 36 | anchors.leftMargin: 0 | 36 | anchors.leftMargin: 0 |
346 | 37 | anchors.top: parent.top | 37 | anchors.top: parent.top |
348 | 38 | color: UbuntuColors.orange | 38 | color: theme.palette.normal.activity |
349 | 39 | width: indeterminateProgress ? parent.width / 6 : (progress / 100) * parent.width | 39 | width: indeterminateProgress ? parent.width / 6 : (progress / 100) * parent.width |
350 | 40 | 40 | ||
351 | 41 | SequentialAnimation { | 41 | SequentialAnimation { |
352 | 42 | 42 | ||
353 | === modified file 'src/app/webbrowser/LeavePrivateModeDialog.qml' | |||
354 | --- src/app/webbrowser/LeavePrivateModeDialog.qml 2015-08-10 15:22:00 +0000 | |||
355 | +++ src/app/webbrowser/LeavePrivateModeDialog.qml 2016-05-23 13:25:57 +0000 | |||
356 | @@ -1,5 +1,5 @@ | |||
357 | 1 | /* | 1 | /* |
359 | 2 | * Copyright 2015 Canonical Ltd. | 2 | * Copyright 2015-2016 Canonical Ltd. |
360 | 3 | * | 3 | * |
361 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
362 | 5 | * | 5 | * |
363 | @@ -37,7 +37,7 @@ | |||
364 | 37 | objectName: "leavePrivateModeDialog.okButton" | 37 | objectName: "leavePrivateModeDialog.okButton" |
365 | 38 | anchors { left: parent.left; right: parent.right } | 38 | anchors { left: parent.left; right: parent.right } |
366 | 39 | text: i18n.tr("OK") | 39 | text: i18n.tr("OK") |
368 | 40 | color: UbuntuColors.green | 40 | color: theme.palette.normal.positive |
369 | 41 | onClicked: okButtonClicked() | 41 | onClicked: okButtonClicked() |
370 | 42 | } | 42 | } |
371 | 43 | } | 43 | } |
372 | 44 | 44 | ||
373 | === modified file 'src/app/webbrowser/SadTab.qml' | |||
374 | --- src/app/webbrowser/SadTab.qml 2015-09-29 19:31:47 +0000 | |||
375 | +++ src/app/webbrowser/SadTab.qml 2016-05-23 13:25:57 +0000 | |||
376 | @@ -1,5 +1,5 @@ | |||
377 | 1 | /* | 1 | /* |
379 | 2 | * Copyright 2015 Canonical Ltd. | 2 | * Copyright 2015-2016 Canonical Ltd. |
380 | 3 | * | 3 | * |
381 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
382 | 5 | * | 5 | * |
383 | @@ -84,7 +84,7 @@ | |||
384 | 84 | Button { | 84 | Button { |
385 | 85 | objectName: "reloadButton" | 85 | objectName: "reloadButton" |
386 | 86 | text: i18n.tr("Reload") | 86 | text: i18n.tr("Reload") |
388 | 87 | color: UbuntuColors.green | 87 | color: theme.palette.normal.positive |
389 | 88 | onClicked: webview.reload() | 88 | onClicked: webview.reload() |
390 | 89 | } | 89 | } |
391 | 90 | } | 90 | } |
392 | 91 | 91 | ||
393 | === modified file 'src/app/webbrowser/SettingsPage.qml' | |||
394 | --- src/app/webbrowser/SettingsPage.qml 2016-05-04 10:30:57 +0000 | |||
395 | +++ src/app/webbrowser/SettingsPage.qml 2016-05-23 13:25:57 +0000 | |||
396 | @@ -263,7 +263,7 @@ | |||
397 | 263 | objectName: "privacyConfirmDialog.confirmButton" | 263 | objectName: "privacyConfirmDialog.confirmButton" |
398 | 264 | width: (parent.width - parent.spacing) / 2 | 264 | width: (parent.width - parent.spacing) / 2 |
399 | 265 | text: i18n.tr("Clear") | 265 | text: i18n.tr("Clear") |
401 | 266 | color: UbuntuColors.green | 266 | color: theme.palette.normal.positive |
402 | 267 | onClicked: { | 267 | onClicked: { |
403 | 268 | confirmed() | 268 | confirmed() |
404 | 269 | PopupUtils.close(privacyConfirmDialog) | 269 | PopupUtils.close(privacyConfirmDialog) |
405 | 270 | 270 | ||
406 | === modified file 'src/app/webbrowser/UrlDelegate.qml' | |||
407 | --- src/app/webbrowser/UrlDelegate.qml 2016-03-01 11:22:35 +0000 | |||
408 | +++ src/app/webbrowser/UrlDelegate.qml 2016-05-23 13:25:57 +0000 | |||
409 | @@ -68,7 +68,7 @@ | |||
410 | 68 | right: parent.right | 68 | right: parent.right |
411 | 69 | } | 69 | } |
412 | 70 | fontSize: "x-small" | 70 | fontSize: "x-small" |
414 | 71 | color: UbuntuColors.darkGrey | 71 | color: theme.palette.normal.backgroundSecondaryText |
415 | 72 | wrapMode: Text.Wrap | 72 | wrapMode: Text.Wrap |
416 | 73 | elide: Text.ElideRight | 73 | elide: Text.ElideRight |
417 | 74 | maximumLineCount: 1 | 74 | maximumLineCount: 1 |
418 | @@ -81,7 +81,7 @@ | |||
419 | 81 | right: parent.right | 81 | right: parent.right |
420 | 82 | } | 82 | } |
421 | 83 | fontSize: "xx-small" | 83 | fontSize: "xx-small" |
423 | 84 | color: UbuntuColors.darkGrey | 84 | color: theme.palette.normal.backgroundTertiaryText |
424 | 85 | wrapMode: Text.Wrap | 85 | wrapMode: Text.Wrap |
425 | 86 | elide: Text.ElideRight | 86 | elide: Text.ElideRight |
426 | 87 | maximumLineCount: 1 | 87 | maximumLineCount: 1 |
427 | 88 | 88 | ||
428 | === modified file 'src/app/webbrowser/UrlDelegateWide.qml' | |||
429 | --- src/app/webbrowser/UrlDelegateWide.qml 2016-01-28 16:48:27 +0000 | |||
430 | +++ src/app/webbrowser/UrlDelegateWide.qml 2016-05-23 13:25:57 +0000 | |||
431 | @@ -54,7 +54,7 @@ | |||
432 | 54 | id: title | 54 | id: title |
433 | 55 | 55 | ||
434 | 56 | fontSize: "x-small" | 56 | fontSize: "x-small" |
436 | 57 | color: UbuntuColors.darkGrey | 57 | color: theme.palette.normal.backgroundSecondaryText |
437 | 58 | wrapMode: Text.Wrap | 58 | wrapMode: Text.Wrap |
438 | 59 | elide: Text.ElideRight | 59 | elide: Text.ElideRight |
439 | 60 | maximumLineCount: 1 | 60 | maximumLineCount: 1 |
440 | @@ -64,7 +64,7 @@ | |||
441 | 64 | id: url | 64 | id: url |
442 | 65 | 65 | ||
443 | 66 | fontSize: "xx-small" | 66 | fontSize: "xx-small" |
445 | 67 | color: UbuntuColors.darkGrey | 67 | color: theme.palette.normal.backgroundTertiaryText |
446 | 68 | wrapMode: Text.Wrap | 68 | wrapMode: Text.Wrap |
447 | 69 | elide: Text.ElideRight | 69 | elide: Text.ElideRight |
448 | 70 | maximumLineCount: 1 | 70 | maximumLineCount: 1 |
449 | 71 | 71 | ||
450 | === modified file 'src/app/webcontainer/SadPage.qml' | |||
451 | --- src/app/webcontainer/SadPage.qml 2015-09-29 20:14:51 +0000 | |||
452 | +++ src/app/webcontainer/SadPage.qml 2016-05-23 13:25:57 +0000 | |||
453 | @@ -1,5 +1,5 @@ | |||
454 | 1 | /* | 1 | /* |
456 | 2 | * Copyright 2015 Canonical Ltd. | 2 | * Copyright 2015-2016 Canonical Ltd. |
457 | 3 | * | 3 | * |
458 | 4 | * This file is part of webbrowser-app. | 4 | * This file is part of webbrowser-app. |
459 | 5 | * | 5 | * |
460 | @@ -49,7 +49,7 @@ | |||
461 | 49 | anchors.horizontalCenter: parent.horizontalCenter | 49 | anchors.horizontalCenter: parent.horizontalCenter |
462 | 50 | objectName: "reloadButton" | 50 | objectName: "reloadButton" |
463 | 51 | text: i18n.tr("Reload") | 51 | text: i18n.tr("Reload") |
465 | 52 | color: UbuntuColors.green | 52 | color: theme.palette.normal.positive |
466 | 53 | onClicked: webview.reload() | 53 | onClicked: webview.reload() |
467 | 54 | } | 54 | } |
468 | 55 | } | 55 | } |
Those changes look good, thanks Michael for taking some time to apply them. A couple of minor comments:
The OK button in src/app/ ConfirmDialog. qml should have an explicit color of theme.palette. normal. positive, for consistency. And probably src/app/ AlertDialog. qml too. BeforeUnloadDia log.qml.
Not sure what should be done with src/app/
In the history and bookmarks views (wide layout), the color of the current date/folder in the left column when it doesn’t have active focus should be 'selected. backgroundText' instead of 'normal. positionText' , according to https:/ /docs.google. com/presentatio n/d/1Sgf536u5Lg Kgl41x7xeEeo- XibEEPQZ_ phugEArwvec/ edit?ts= 5728be0d# slide=id. g12f5d7958f_ 0_92 (that visual design update hasn’t been implemented yet, I’ll get to it soon, but since you’re changing some colors now, I reckon it would be better to use the updated ones now).
Could you please update the dates in the copyright headers for files that were changed?