Merge lp:~mterry/podbird/theme-colors into lp:podbird/devel
- theme-colors
- Merge into devel
Proposed by
Michael Terry
Status: | Needs review |
---|---|
Proposed branch: | lp:~mterry/podbird/theme-colors |
Merge into: | lp:podbird/devel |
Prerequisite: | lp:~mterry/podbird/ok |
Diff against target: |
1190 lines (+91/-228) 27 files modified
app/components/ActionButton.qml (+2/-2) app/components/Card.qml (+3/-3) app/components/CustomProgressBar.qml (+2/-2) app/components/CustomSectionHeader.qml (+2/-2) app/components/EmptyState.qml (+3/-3) app/components/HeaderListItem.qml (+0/-1) app/components/SingleValueListItem.qml (+1/-2) app/components/Walkthrough.qml (+4/-4) app/podbird.qml (+2/-8) app/settings/About.qml (+0/-7) app/settings/CleanSetting.qml (+1/-5) app/settings/Credits.qml (+0/-1) app/settings/DownloadSetting.qml (+1/-5) app/settings/ThemeSetting.qml (+1/-5) app/themes/Dark.qml (+7/-23) app/themes/Light.qml (+7/-23) app/ui/EpisodesPage.qml (+13/-28) app/ui/EpisodesTab.qml (+6/-24) app/ui/FullPlayingView.qml (+11/-12) app/ui/NowPlayingPage.qml (+0/-7) app/ui/PlayerControls.qml (+14/-7) app/ui/PodcastsTab.qml (+1/-11) app/ui/Queue.qml (+2/-3) app/ui/SearchPage.qml (+3/-17) app/ui/SettingsPage.qml (+3/-21) app/welcomewizard/Slide1.qml (+1/-1) app/welcomewizard/Slide7.qml (+1/-1) |
To merge this branch: | bzr merge lp:~mterry/podbird/theme-colors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nekhelesh Ramananthan | Needs Information | ||
Review via email: mp+296062@code.launchpad.net |
Commit message
Update colors to match current Ubuntu theme colors.
Description of the change
Use system theme light/dark colors instead of custom ones.
This also reduces the use of green to just positive button actions. Blue is used instead for progress and selected states, like other apps.
To post a comment you must log in.
lp:~mterry/podbird/theme-colors
updated
- 150. By Michael Terry
-
Whoops, remove testing string
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote : | # |
@Michael Terry, BTW Thanks a lot for these patches!
Revision history for this message
Michael Terry (mterry) wrote : | # |
No worries if you don't like it. I get it if you prefer branded colors.
Unmerged revisions
- 150. By Michael Terry
-
Whoops, remove testing string
- 149. By Michael Terry
-
Use theme colors more consistently
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'app/components/ActionButton.qml' | |||
2 | --- app/components/ActionButton.qml 2016-03-04 10:40:54 +0000 | |||
3 | +++ app/components/ActionButton.qml 2016-05-30 18:00:34 +0000 | |||
4 | @@ -28,7 +28,7 @@ | |||
5 | 28 | Rectangle { | 28 | Rectangle { |
6 | 29 | visible: abstractButton.pressed | 29 | visible: abstractButton.pressed |
7 | 30 | anchors.fill: parent | 30 | anchors.fill: parent |
9 | 31 | color: podbird.appTheme.hightlightListView | 31 | color: theme.palette.selected.background |
10 | 32 | } | 32 | } |
11 | 33 | 33 | ||
12 | 34 | Icon { | 34 | Icon { |
13 | @@ -36,6 +36,6 @@ | |||
14 | 36 | width: units.gu(2.5) | 36 | width: units.gu(2.5) |
15 | 37 | height: width | 37 | height: width |
16 | 38 | anchors.centerIn: parent | 38 | anchors.centerIn: parent |
18 | 39 | color: podbird.appTheme.baseIcon | 39 | color: abstractButton.pressed ? theme.palette.selected.backgroundText : theme.palette.normal.backgroundText |
19 | 40 | } | 40 | } |
20 | 41 | } | 41 | } |
21 | 42 | 42 | ||
22 | === modified file 'app/components/Card.qml' | |||
23 | --- app/components/Card.qml 2016-03-24 16:39:24 +0000 | |||
24 | +++ app/components/Card.qml 2016-05-30 18:00:34 +0000 | |||
25 | @@ -49,7 +49,7 @@ | |||
26 | 49 | Component { | 49 | Component { |
27 | 50 | id: hintComponent | 50 | id: hintComponent |
28 | 51 | Rectangle { | 51 | Rectangle { |
30 | 52 | color: podbird.appTheme.focusText | 52 | color: theme.palette.normal.positive |
31 | 53 | width: secondaryLabel.implicitWidth + units.gu(1) | 53 | width: secondaryLabel.implicitWidth + units.gu(1) |
32 | 54 | height: secondaryLabel.implicitHeight + units.gu(1) | 54 | height: secondaryLabel.implicitHeight + units.gu(1) |
33 | 55 | radius: units.gu(0.5) | 55 | radius: units.gu(0.5) |
34 | @@ -60,7 +60,7 @@ | |||
35 | 60 | text: secondaryText | 60 | text: secondaryText |
36 | 61 | visible: text !== "" | 61 | visible: text !== "" |
37 | 62 | textSize: Label.Small | 62 | textSize: Label.Small |
39 | 63 | color: "White" | 63 | color: theme.palette.normal.positiveText |
40 | 64 | } | 64 | } |
41 | 65 | } | 65 | } |
42 | 66 | } | 66 | } |
43 | @@ -74,7 +74,7 @@ | |||
44 | 74 | right: imgFrame.right | 74 | right: imgFrame.right |
45 | 75 | margins: units.gu(1) | 75 | margins: units.gu(1) |
46 | 76 | } | 76 | } |
48 | 77 | color: podbird.appTheme.baseText | 77 | color: theme.palette.normal.backgroundText |
49 | 78 | elide: Text.ElideRight | 78 | elide: Text.ElideRight |
50 | 79 | textSize: Label.Small | 79 | textSize: Label.Small |
51 | 80 | wrapMode: Text.WordWrap | 80 | wrapMode: Text.WordWrap |
52 | 81 | 81 | ||
53 | === modified file 'app/components/CustomProgressBar.qml' | |||
54 | --- app/components/CustomProgressBar.qml 2016-03-04 10:40:54 +0000 | |||
55 | +++ app/components/CustomProgressBar.qml 2016-05-30 18:00:34 +0000 | |||
56 | @@ -26,7 +26,7 @@ | |||
57 | 26 | property bool indeterminateProgress: false | 26 | property bool indeterminateProgress: false |
58 | 27 | 27 | ||
59 | 28 | radius: width/3 | 28 | radius: width/3 |
61 | 29 | color: Theme.palette.normal.base | 29 | color: theme.palette.normal.base |
62 | 30 | 30 | ||
63 | 31 | Rectangle { | 31 | Rectangle { |
64 | 32 | id: currentProgress | 32 | id: currentProgress |
65 | @@ -34,7 +34,7 @@ | |||
66 | 34 | radius: parent.radius | 34 | radius: parent.radius |
67 | 35 | anchors.left: parent.left | 35 | anchors.left: parent.left |
68 | 36 | anchors.top: parent.top | 36 | anchors.top: parent.top |
70 | 37 | color: podbird.appTheme.focusText | 37 | color: theme.palette.normal.activity |
71 | 38 | width: progress >= 0 && progress <= 100 ? (progress / 100) * parent.width : parent.width / 6 | 38 | width: progress >= 0 && progress <= 100 ? (progress / 100) * parent.width : parent.width / 6 |
72 | 39 | 39 | ||
73 | 40 | SequentialAnimation { | 40 | SequentialAnimation { |
74 | 41 | 41 | ||
75 | === modified file 'app/components/CustomSectionHeader.qml' | |||
76 | --- app/components/CustomSectionHeader.qml 2016-03-24 16:39:24 +0000 | |||
77 | +++ app/components/CustomSectionHeader.qml 2016-05-30 18:00:34 +0000 | |||
78 | @@ -31,7 +31,7 @@ | |||
79 | 31 | 31 | ||
80 | 32 | Label { | 32 | Label { |
81 | 33 | id: headerText | 33 | id: headerText |
83 | 34 | color: podbird.appTheme.baseText | 34 | color: theme.palette.normal.backgroundText |
84 | 35 | font.weight: Font.DemiBold | 35 | font.weight: Font.DemiBold |
85 | 36 | anchors { top: parent.top; topMargin: units.gu(2); bottom: parent.bottom; bottomMargin: units.gu(2) } | 36 | anchors { top: parent.top; topMargin: units.gu(2); bottom: parent.bottom; bottomMargin: units.gu(2) } |
86 | 37 | width: parent.width | 37 | width: parent.width |
87 | @@ -39,7 +39,7 @@ | |||
88 | 39 | 39 | ||
89 | 40 | Rectangle { | 40 | Rectangle { |
90 | 41 | id: divider | 41 | id: divider |
92 | 42 | color: settings.themeName === "Dark.qml" ? "#888888" : "#cdcdcd" | 42 | color: theme.palette.normal.base |
93 | 43 | width: parent.width | 43 | width: parent.width |
94 | 44 | height: units.dp(1) | 44 | height: units.dp(1) |
95 | 45 | anchors.bottom: parent.bottom | 45 | anchors.bottom: parent.bottom |
96 | 46 | 46 | ||
97 | === modified file 'app/components/EmptyState.qml' | |||
98 | --- app/components/EmptyState.qml 2016-03-24 16:39:24 +0000 | |||
99 | +++ app/components/EmptyState.qml 2016-05-30 18:00:34 +0000 | |||
100 | @@ -38,7 +38,7 @@ | |||
101 | 38 | id: emptyIcon | 38 | id: emptyIcon |
102 | 39 | width: units.gu(22) | 39 | width: units.gu(22) |
103 | 40 | height: units.gu(12) | 40 | height: units.gu(12) |
105 | 41 | color: podbird.appTheme.baseIcon | 41 | color: theme.palette.normal.backgroundText |
106 | 42 | anchors.horizontalCenter: parent.horizontalCenter | 42 | anchors.horizontalCenter: parent.horizontalCenter |
107 | 43 | } | 43 | } |
108 | 44 | 44 | ||
109 | @@ -48,7 +48,7 @@ | |||
110 | 48 | anchors.topMargin: units.gu(5) | 48 | anchors.topMargin: units.gu(5) |
111 | 49 | width: parent.width | 49 | width: parent.width |
112 | 50 | textSize: Label.Large | 50 | textSize: Label.Large |
114 | 51 | color: podbird.appTheme.baseText | 51 | color: theme.palette.normal.backgroundText |
115 | 52 | horizontalAlignment: Text.AlignHCenter | 52 | horizontalAlignment: Text.AlignHCenter |
116 | 53 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | 53 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere |
117 | 54 | } | 54 | } |
118 | @@ -57,7 +57,7 @@ | |||
119 | 57 | id: emptySublabel | 57 | id: emptySublabel |
120 | 58 | width: parent.width | 58 | width: parent.width |
121 | 59 | anchors.top: emptyLabel.bottom | 59 | anchors.top: emptyLabel.bottom |
123 | 60 | color: podbird.appTheme.baseSubText | 60 | color: theme.palette.normal.backgroundSecondaryText |
124 | 61 | horizontalAlignment: Text.AlignHCenter | 61 | horizontalAlignment: Text.AlignHCenter |
125 | 62 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | 62 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere |
126 | 63 | } | 63 | } |
127 | 64 | 64 | ||
128 | === modified file 'app/components/HeaderListItem.qml' | |||
129 | --- app/components/HeaderListItem.qml 2016-03-24 16:39:24 +0000 | |||
130 | +++ app/components/HeaderListItem.qml 2016-05-30 18:00:34 +0000 | |||
131 | @@ -31,7 +31,6 @@ | |||
132 | 31 | ListItemLayout { | 31 | ListItemLayout { |
133 | 32 | id: headerText | 32 | id: headerText |
134 | 33 | title.text: " " | 33 | title.text: " " |
135 | 34 | title.color: podbird.appTheme.baseText | ||
136 | 35 | title.font.weight: Font.DemiBold | 34 | title.font.weight: Font.DemiBold |
137 | 36 | } | 35 | } |
138 | 37 | } | 36 | } |
139 | 38 | 37 | ||
140 | === modified file 'app/components/SingleValueListItem.qml' | |||
141 | --- app/components/SingleValueListItem.qml 2016-03-24 16:39:24 +0000 | |||
142 | +++ app/components/SingleValueListItem.qml 2016-05-30 18:00:34 +0000 | |||
143 | @@ -32,11 +32,10 @@ | |||
144 | 32 | id: customItemLayout | 32 | id: customItemLayout |
145 | 33 | 33 | ||
146 | 34 | title.text: " " | 34 | title.text: " " |
147 | 35 | title.color: podbird.appTheme.baseText | ||
148 | 36 | 35 | ||
149 | 37 | Label { | 36 | Label { |
150 | 38 | id: _value | 37 | id: _value |
152 | 39 | color: podbird.appTheme.baseText | 38 | color: parent.title.color |
153 | 40 | SlotsLayout.position: SlotsLayout.Trailing; | 39 | SlotsLayout.position: SlotsLayout.Trailing; |
154 | 41 | } | 40 | } |
155 | 42 | 41 | ||
156 | 43 | 42 | ||
157 | === modified file 'app/components/Walkthrough.qml' | |||
158 | --- app/components/Walkthrough.qml 2016-03-04 10:40:54 +0000 | |||
159 | +++ app/components/Walkthrough.qml 2016-05-30 18:00:34 +0000 | |||
160 | @@ -32,13 +32,13 @@ | |||
161 | 32 | property list<Component> model | 32 | property list<Component> model |
162 | 33 | 33 | ||
163 | 34 | // Property to set the color of bottom cirle to indicate the user's progress | 34 | // Property to set the color of bottom cirle to indicate the user's progress |
165 | 35 | property color completeColor: "green" | 35 | property color completeColor: theme.palette.normal.activity |
166 | 36 | 36 | ||
167 | 37 | // Property to set the color of the bottom circle to indicate the slide still left to cover | 37 | // Property to set the color of the bottom circle to indicate the slide still left to cover |
169 | 38 | property color inCompleteColor: "lightgrey" | 38 | property color inCompleteColor: theme.palette.normal.base |
170 | 39 | 39 | ||
171 | 40 | // Property to set the color of the skip welcome wizard text | 40 | // Property to set the color of the skip welcome wizard text |
173 | 41 | property color skipTextColor: "grey" | 41 | property color skipTextColor: theme.palette.normal.backgroundSecondaryText |
174 | 42 | 42 | ||
175 | 43 | // Property to signal walkthrough completion | 43 | // Property to signal walkthrough completion |
176 | 44 | signal finished | 44 | signal finished |
177 | @@ -122,7 +122,7 @@ | |||
178 | 122 | border.width: listView.currentIndex == index ? units.gu(0.2) : units.gu(0) | 122 | border.width: listView.currentIndex == index ? units.gu(0.2) : units.gu(0) |
179 | 123 | border.color: completeColor | 123 | border.color: completeColor |
180 | 124 | anchors.verticalCenter: parent.verticalCenter | 124 | anchors.verticalCenter: parent.verticalCenter |
182 | 125 | color: listView.currentIndex == index ? "White" | 125 | color: listView.currentIndex == index ? theme.palette.normal.background |
183 | 126 | : listView.currentIndex >= index ? completeColor | 126 | : listView.currentIndex >= index ? completeColor |
184 | 127 | : inCompleteColor | 127 | : inCompleteColor |
185 | 128 | Behavior on color { | 128 | Behavior on color { |
186 | 129 | 129 | ||
187 | === modified file 'app/podbird.qml' | |||
188 | --- app/podbird.qml 2016-03-28 21:03:25 +0000 | |||
189 | +++ app/podbird.qml 2016-05-30 18:00:34 +0000 | |||
190 | @@ -38,9 +38,7 @@ | |||
191 | 38 | width: units.gu(50) | 38 | width: units.gu(50) |
192 | 39 | height: units.gu(75) | 39 | height: units.gu(75) |
193 | 40 | 40 | ||
197 | 41 | backgroundColor: appTheme.background | 41 | theme.name: appTheme.baseTheme |
195 | 42 | theme.name: settings.themeName == "Dark.qml" ? "Ubuntu.Components.Themes.SuruDark" | ||
196 | 43 | : "Ubuntu.Components.Themes.Ambiance" | ||
198 | 44 | 42 | ||
199 | 45 | Component.onDestruction: { | 43 | Component.onDestruction: { |
200 | 46 | console.log("[LOG]: Download cancelled"); | 44 | console.log("[LOG]: Download cancelled"); |
201 | @@ -97,10 +95,6 @@ | |||
202 | 97 | Themes.ThemeManager { | 95 | Themes.ThemeManager { |
203 | 98 | id: themeManager | 96 | id: themeManager |
204 | 99 | source: settings.themeName | 97 | source: settings.themeName |
205 | 100 | onSourceChanged: { | ||
206 | 101 | podbird.theme.name = settings.themeName == "Dark.qml" ? "Ubuntu.Components.Themes.SuruDark" | ||
207 | 102 | : "Ubuntu.Components.Themes.Ambiance" | ||
208 | 103 | } | ||
209 | 104 | } | 98 | } |
210 | 105 | 99 | ||
211 | 106 | property alias appTheme: themeManager.theme | 100 | property alias appTheme: themeManager.theme |
212 | @@ -426,7 +420,7 @@ | |||
213 | 426 | 420 | ||
214 | 427 | Rectangle { | 421 | Rectangle { |
215 | 428 | id: loadingIndicator | 422 | id: loadingIndicator |
217 | 429 | color: podbird.appTheme.background | 423 | color: theme.palette.normal.background |
218 | 430 | anchors.fill: parent | 424 | anchors.fill: parent |
219 | 431 | 425 | ||
220 | 432 | ActivityIndicator { | 426 | ActivityIndicator { |
221 | 433 | 427 | ||
222 | === modified file 'app/settings/About.qml' | |||
223 | --- app/settings/About.qml 2016-03-18 22:17:59 +0000 | |||
224 | +++ app/settings/About.qml 2016-05-30 18:00:34 +0000 | |||
225 | @@ -27,10 +27,6 @@ | |||
226 | 27 | 27 | ||
227 | 28 | title: i18n.tr("About") | 28 | title: i18n.tr("About") |
228 | 29 | 29 | ||
229 | 30 | StyleHints { | ||
230 | 31 | backgroundColor: podbird.appTheme.background | ||
231 | 32 | } | ||
232 | 33 | |||
233 | 34 | extension: Sections { | 30 | extension: Sections { |
234 | 35 | id: aboutPageHeaderSections | 31 | id: aboutPageHeaderSections |
235 | 36 | 32 | ||
236 | @@ -39,9 +35,6 @@ | |||
237 | 39 | bottom: parent.bottom | 35 | bottom: parent.bottom |
238 | 40 | } | 36 | } |
239 | 41 | 37 | ||
240 | 42 | StyleHints { | ||
241 | 43 | selectedSectionColor: podbird.appTheme.focusText | ||
242 | 44 | } | ||
243 | 45 | // TRANSTORS: Credits as in the code and design contributors to the app | 38 | // TRANSTORS: Credits as in the code and design contributors to the app |
244 | 46 | model: [i18n.tr("About"), i18n.tr("Credits")] | 39 | model: [i18n.tr("About"), i18n.tr("Credits")] |
245 | 47 | } | 40 | } |
246 | 48 | 41 | ||
247 | === modified file 'app/settings/CleanSetting.qml' | |||
248 | --- app/settings/CleanSetting.qml 2016-03-24 16:39:24 +0000 | |||
249 | +++ app/settings/CleanSetting.qml 2016-05-30 18:00:34 +0000 | |||
250 | @@ -28,9 +28,6 @@ | |||
251 | 28 | header: PageHeader { | 28 | header: PageHeader { |
252 | 29 | title: i18n.tr("Delete older than") | 29 | title: i18n.tr("Delete older than") |
253 | 30 | flickable: cleanup | 30 | flickable: cleanup |
254 | 31 | StyleHints { | ||
255 | 32 | backgroundColor: podbird.appTheme.background | ||
256 | 33 | } | ||
257 | 34 | } | 31 | } |
258 | 35 | 32 | ||
259 | 36 | ListModel { | 33 | ListModel { |
260 | @@ -64,13 +61,12 @@ | |||
261 | 64 | 61 | ||
262 | 65 | ListItemLayout { | 62 | ListItemLayout { |
263 | 66 | title.text: model.name | 63 | title.text: model.name |
264 | 67 | title.color: podbird.appTheme.baseText | ||
265 | 68 | 64 | ||
266 | 69 | Icon { | 65 | Icon { |
267 | 70 | width: units.gu(2) | 66 | width: units.gu(2) |
268 | 71 | height: width | 67 | height: width |
269 | 72 | name: "ok" | 68 | name: "ok" |
271 | 73 | color: podbird.appTheme.baseText | 69 | color: parent.title.color |
272 | 74 | visible: podbird.settings.retentionDays === model.value | 70 | visible: podbird.settings.retentionDays === model.value |
273 | 75 | SlotsLayout.position: SlotsLayout.Trailing | 71 | SlotsLayout.position: SlotsLayout.Trailing |
274 | 76 | } | 72 | } |
275 | 77 | 73 | ||
276 | === modified file 'app/settings/Credits.qml' | |||
277 | --- app/settings/Credits.qml 2016-03-24 16:39:24 +0000 | |||
278 | +++ app/settings/Credits.qml 2016-05-30 18:00:34 +0000 | |||
279 | @@ -58,7 +58,6 @@ | |||
280 | 58 | delegate: ListItem { | 58 | delegate: ListItem { |
281 | 59 | ListItemLayout { | 59 | ListItemLayout { |
282 | 60 | title.text: model.name | 60 | title.text: model.name |
283 | 61 | title.color: podbird.appTheme.baseText | ||
284 | 62 | ProgressionSlot {} | 61 | ProgressionSlot {} |
285 | 63 | } | 62 | } |
286 | 64 | divider.visible: false | 63 | divider.visible: false |
287 | 65 | 64 | ||
288 | === modified file 'app/settings/DownloadSetting.qml' | |||
289 | --- app/settings/DownloadSetting.qml 2016-03-24 16:39:24 +0000 | |||
290 | +++ app/settings/DownloadSetting.qml 2016-05-30 18:00:34 +0000 | |||
291 | @@ -28,9 +28,6 @@ | |||
292 | 28 | header: PageHeader { | 28 | header: PageHeader { |
293 | 29 | title: i18n.tr("Download at most") | 29 | title: i18n.tr("Download at most") |
294 | 30 | flickable: download | 30 | flickable: download |
295 | 31 | StyleHints { | ||
296 | 32 | backgroundColor: podbird.appTheme.background | ||
297 | 33 | } | ||
298 | 34 | } | 31 | } |
299 | 35 | 32 | ||
300 | 36 | ListModel { | 33 | ListModel { |
301 | @@ -63,13 +60,12 @@ | |||
302 | 63 | 60 | ||
303 | 64 | ListItemLayout { | 61 | ListItemLayout { |
304 | 65 | title.text: model.name | 62 | title.text: model.name |
305 | 66 | title.color: podbird.appTheme.baseText | ||
306 | 67 | 63 | ||
307 | 68 | Icon { | 64 | Icon { |
308 | 69 | width: units.gu(2) | 65 | width: units.gu(2) |
309 | 70 | height: width | 66 | height: width |
310 | 71 | name: "ok" | 67 | name: "ok" |
312 | 72 | color: podbird.appTheme.baseText | 68 | color: parent.title.color |
313 | 73 | visible: podbird.settings.maxEpisodeDownload === model.value | 69 | visible: podbird.settings.maxEpisodeDownload === model.value |
314 | 74 | SlotsLayout.position: SlotsLayout.Trailing | 70 | SlotsLayout.position: SlotsLayout.Trailing |
315 | 75 | } | 71 | } |
316 | 76 | 72 | ||
317 | === modified file 'app/settings/ThemeSetting.qml' | |||
318 | --- app/settings/ThemeSetting.qml 2016-03-24 16:39:24 +0000 | |||
319 | +++ app/settings/ThemeSetting.qml 2016-05-30 18:00:34 +0000 | |||
320 | @@ -28,9 +28,6 @@ | |||
321 | 28 | header: PageHeader { | 28 | header: PageHeader { |
322 | 29 | title: i18n.tr("Theme") | 29 | title: i18n.tr("Theme") |
323 | 30 | flickable: themes | 30 | flickable: themes |
324 | 31 | StyleHints { | ||
325 | 32 | backgroundColor: podbird.appTheme.background | ||
326 | 33 | } | ||
327 | 34 | } | 31 | } |
328 | 35 | 32 | ||
329 | 36 | ListModel { | 33 | ListModel { |
330 | @@ -64,13 +61,12 @@ | |||
331 | 64 | id: themeLayout | 61 | id: themeLayout |
332 | 65 | 62 | ||
333 | 66 | title.text: model.name | 63 | title.text: model.name |
334 | 67 | title.color: podbird.appTheme.baseText | ||
335 | 68 | 64 | ||
336 | 69 | Icon { | 65 | Icon { |
337 | 70 | width: units.gu(2) | 66 | width: units.gu(2) |
338 | 71 | height: width | 67 | height: width |
339 | 72 | name: "ok" | 68 | name: "ok" |
341 | 73 | color: podbird.appTheme.baseText | 69 | color: parent.title.color |
342 | 74 | visible: podbird.settings.themeName === model.file | 70 | visible: podbird.settings.themeName === model.file |
343 | 75 | SlotsLayout.position: SlotsLayout.Trailing | 71 | SlotsLayout.position: SlotsLayout.Trailing |
344 | 76 | } | 72 | } |
345 | 77 | 73 | ||
346 | === modified file 'app/themes/Dark.qml' | |||
347 | --- app/themes/Dark.qml 2016-03-29 11:02:18 +0000 | |||
348 | +++ app/themes/Dark.qml 2016-05-30 18:00:34 +0000 | |||
349 | @@ -19,27 +19,11 @@ | |||
350 | 19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
351 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
352 | 21 | 21 | ||
376 | 22 | QtObject { | 22 | StyledItem { |
377 | 23 | // MainView | 23 | // Themes |
378 | 24 | property color background: "#242423" | 24 | property string baseTheme: "Ubuntu.Components.Themes.SuruDark" |
379 | 25 | 25 | property string bottomBarTheme: "Ubuntu.Components.Themes.SuruDark" | |
380 | 26 | // Main Text Colors | 26 | |
381 | 27 | property color baseText: "White" | 27 | // Colors that themes don't provide |
382 | 28 | property color baseSubText: "#999999" | 28 | property color linkText: UbuntuColors.blue // must work on normal.overlay too |
360 | 29 | property color focusText: "#35AF44" | ||
361 | 30 | property color linkText: "Cyan" | ||
362 | 31 | |||
363 | 32 | // Icon Colors | ||
364 | 33 | property color baseIcon: "White" | ||
365 | 34 | |||
366 | 35 | // Button Colors | ||
367 | 36 | property color positiveActionButton: UbuntuColors.green | ||
368 | 37 | property color negativeActionButton: UbuntuColors.red | ||
369 | 38 | property color neutralActionButton: UbuntuColors.coolGrey | ||
370 | 39 | |||
371 | 40 | // Bottom Player Bar Colors | ||
372 | 41 | property color bottomBarBackground: "#15141A" | ||
373 | 42 | |||
374 | 43 | // Highlight Color | ||
375 | 44 | property color hightlightListView: "#2D2D2C" | ||
383 | 45 | } | 29 | } |
384 | 46 | 30 | ||
385 | === modified file 'app/themes/Light.qml' | |||
386 | --- app/themes/Light.qml 2016-03-29 11:02:18 +0000 | |||
387 | +++ app/themes/Light.qml 2016-05-30 18:00:34 +0000 | |||
388 | @@ -19,27 +19,11 @@ | |||
389 | 19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
390 | 20 | import Ubuntu.Components 1.3 | 20 | import Ubuntu.Components 1.3 |
391 | 21 | 21 | ||
415 | 22 | QtObject { | 22 | StyledItem { |
416 | 23 | // MainView | 23 | // Themes |
417 | 24 | property color background: "#ECECEC" | 24 | property string baseTheme: "Ubuntu.Components.Themes.Ambiance" |
418 | 25 | 25 | property string bottomBarTheme: "Ubuntu.Components.Themes.SuruDark" | |
419 | 26 | // Main Text Colors | 26 | |
420 | 27 | property color baseText: UbuntuColors.darkGrey | 27 | // Colors that themes don't provide |
421 | 28 | property color baseSubText: "#999999" | 28 | property color linkText: UbuntuColors.blue // must work on normal.overlay too |
399 | 29 | property color focusText: "#35AF44" | ||
400 | 30 | property color linkText: "Blue" | ||
401 | 31 | |||
402 | 32 | // Icon Colors | ||
403 | 33 | property color baseIcon: UbuntuColors.darkGrey | ||
404 | 34 | |||
405 | 35 | // Button Colors | ||
406 | 36 | property color positiveActionButton: UbuntuColors.green | ||
407 | 37 | property color negativeActionButton: UbuntuColors.red | ||
408 | 38 | property color neutralActionButton: UbuntuColors.coolGrey | ||
409 | 39 | |||
410 | 40 | // Bottom Player Bar Colors | ||
411 | 41 | property color bottomBarBackground: "#323435" | ||
412 | 42 | |||
413 | 43 | // Highlight Color | ||
414 | 44 | property color hightlightListView: "#F5F5F5" | ||
422 | 45 | } | 29 | } |
423 | 46 | 30 | ||
424 | === modified file 'app/ui/EpisodesPage.qml' | |||
425 | --- app/ui/EpisodesPage.qml 2016-03-29 11:02:46 +0000 | |||
426 | +++ app/ui/EpisodesPage.qml 2016-05-30 18:00:34 +0000 | |||
427 | @@ -52,10 +52,6 @@ | |||
428 | 52 | title: i18n.tr("Podcast") | 52 | title: i18n.tr("Podcast") |
429 | 53 | flickable: null | 53 | flickable: null |
430 | 54 | 54 | ||
431 | 55 | StyleHints { | ||
432 | 56 | backgroundColor: podbird.appTheme.background | ||
433 | 57 | } | ||
434 | 58 | |||
435 | 59 | trailingActionBar.actions: [ | 55 | trailingActionBar.actions: [ |
436 | 60 | Action { | 56 | Action { |
437 | 61 | iconName: "search" | 57 | iconName: "search" |
438 | @@ -90,10 +86,6 @@ | |||
439 | 90 | } | 86 | } |
440 | 91 | } | 87 | } |
441 | 92 | 88 | ||
442 | 93 | StyleHints { | ||
443 | 94 | backgroundColor: podbird.appTheme.background | ||
444 | 95 | } | ||
445 | 96 | |||
446 | 97 | contents: Loader { | 89 | contents: Loader { |
447 | 98 | id: searchField | 90 | id: searchField |
448 | 99 | sourceComponent: episodesPage.header === searchHeader ? searchFieldComponent : undefined | 91 | sourceComponent: episodesPage.header === searchHeader ? searchFieldComponent : undefined |
449 | @@ -115,10 +107,6 @@ | |||
450 | 115 | } | 107 | } |
451 | 116 | } | 108 | } |
452 | 117 | 109 | ||
453 | 118 | StyleHints { | ||
454 | 119 | backgroundColor: podbird.appTheme.background | ||
455 | 120 | } | ||
456 | 121 | |||
457 | 122 | leadingActionBar.actions: [ | 110 | leadingActionBar.actions: [ |
458 | 123 | Action { | 111 | Action { |
459 | 124 | iconName: "back" | 112 | iconName: "back" |
460 | @@ -304,7 +292,7 @@ | |||
461 | 304 | text: i18n.tr("Are you sure you want to unsubscribe from <b>%1</b>?").arg(episodesPage.episodeName) | 292 | text: i18n.tr("Are you sure you want to unsubscribe from <b>%1</b>?").arg(episodesPage.episodeName) |
462 | 305 | Button { | 293 | Button { |
463 | 306 | text: i18n.tr("Unsubscribe") | 294 | text: i18n.tr("Unsubscribe") |
465 | 307 | color: podbird.appTheme.negativeActionButton | 295 | color: theme.palette.normal.negative |
466 | 308 | onClicked: { | 296 | onClicked: { |
467 | 309 | var db = Podcasts.init(); | 297 | var db = Podcasts.init(); |
468 | 310 | db.transaction(function (tx) { | 298 | db.transaction(function (tx) { |
469 | @@ -321,7 +309,6 @@ | |||
470 | 321 | } | 309 | } |
471 | 322 | Button { | 310 | Button { |
472 | 323 | text: i18n.tr("Cancel") | 311 | text: i18n.tr("Cancel") |
473 | 324 | color: podbird.appTheme.neutralActionButton | ||
474 | 325 | onClicked: { | 312 | onClicked: { |
475 | 326 | PopupUtils.close(dialogInternal) | 313 | PopupUtils.close(dialogInternal) |
476 | 327 | } | 314 | } |
477 | @@ -347,15 +334,15 @@ | |||
478 | 347 | Label { | 334 | Label { |
479 | 348 | width: parent.width | 335 | width: parent.width |
480 | 349 | wrapMode: Text.WordWrap | 336 | wrapMode: Text.WordWrap |
483 | 350 | color: UbuntuColors.coolGrey | 337 | color: theme.palette.normal.overlayText |
484 | 351 | linkColor: "Blue" | 338 | linkColor: podbird.appTheme.linkText |
485 | 352 | text: dialogInternal.description | 339 | text: dialogInternal.description |
486 | 353 | onLinkActivated: Qt.openUrlExternally(link) | 340 | onLinkActivated: Qt.openUrlExternally(link) |
487 | 354 | } | 341 | } |
488 | 355 | 342 | ||
489 | 356 | Button { | 343 | Button { |
490 | 357 | text: i18n.tr("Close") | 344 | text: i18n.tr("Close") |
492 | 358 | color: podbird.appTheme.positiveActionButton | 345 | color: theme.palette.normal.positive |
493 | 359 | onClicked: { | 346 | onClicked: { |
494 | 360 | PopupUtils.close(dialogInternal) | 347 | PopupUtils.close(dialogInternal) |
495 | 361 | } | 348 | } |
496 | @@ -448,7 +435,7 @@ | |||
497 | 448 | horizontalAlignment: Text.AlignHCenter | 435 | horizontalAlignment: Text.AlignHCenter |
498 | 449 | maximumLineCount: 2 | 436 | maximumLineCount: 2 |
499 | 450 | elide: Text.ElideRight | 437 | elide: Text.ElideRight |
501 | 451 | color: podbird.appTheme.baseText | 438 | color: theme.palette.normal.backgroundText |
502 | 452 | anchors.top: cover.bottom | 439 | anchors.top: cover.bottom |
503 | 453 | anchors.topMargin: units.gu(2) | 440 | anchors.topMargin: units.gu(2) |
504 | 454 | } | 441 | } |
505 | @@ -473,7 +460,7 @@ | |||
506 | 473 | anchors.margins: units.gu(2) | 460 | anchors.margins: units.gu(2) |
507 | 474 | height: units.gu(0.25) | 461 | height: units.gu(0.25) |
508 | 475 | radius: width/3 | 462 | radius: width/3 |
510 | 476 | color: UbuntuColors.lightGrey | 463 | color: theme.palette.normal.base |
511 | 477 | } | 464 | } |
512 | 478 | 465 | ||
513 | 479 | Rectangle { | 466 | Rectangle { |
514 | @@ -483,7 +470,7 @@ | |||
515 | 483 | height: units.gu(0.25) | 470 | height: units.gu(0.25) |
516 | 484 | radius: width/3 | 471 | radius: width/3 |
517 | 485 | width: sliderContainer.width/3 | 472 | width: sliderContainer.width/3 |
519 | 486 | color: podbird.appTheme.focusText | 473 | color: theme.palette.normal.positionText |
520 | 487 | x: { | 474 | x: { |
521 | 488 | if (episodesPage.mode === "unheard") | 475 | if (episodesPage.mode === "unheard") |
522 | 489 | return units.gu(2) | 476 | return units.gu(2) |
523 | @@ -506,7 +493,7 @@ | |||
524 | 506 | width: sliderContainer.width/3 | 493 | width: sliderContainer.width/3 |
525 | 507 | horizontalAlignment: Text.AlignHCenter | 494 | horizontalAlignment: Text.AlignHCenter |
526 | 508 | font.weight: Font.DemiBold | 495 | font.weight: Font.DemiBold |
528 | 509 | color: episodesPage.mode == "unheard" ? podbird.appTheme.focusText : podbird.appTheme.baseText | 496 | color: episodesPage.mode == "unheard" ? theme.palette.normal.positionText : theme.palette.normal.backgroundTertiaryText |
529 | 510 | 497 | ||
530 | 511 | AbstractButton { | 498 | AbstractButton { |
531 | 512 | anchors.fill: parent | 499 | anchors.fill: parent |
532 | @@ -521,7 +508,7 @@ | |||
533 | 521 | width: sliderContainer.width/3 | 508 | width: sliderContainer.width/3 |
534 | 522 | font.weight: Font.DemiBold | 509 | font.weight: Font.DemiBold |
535 | 523 | horizontalAlignment: Text.AlignHCenter | 510 | horizontalAlignment: Text.AlignHCenter |
537 | 524 | color: episodesPage.mode == "listened" ? podbird.appTheme.focusText : podbird.appTheme.baseText | 511 | color: episodesPage.mode == "listened" ? theme.palette.normal.positionText : theme.palette.normal.backgroundTertiaryText |
538 | 525 | 512 | ||
539 | 526 | AbstractButton { | 513 | AbstractButton { |
540 | 527 | anchors.fill: parent | 514 | anchors.fill: parent |
541 | @@ -537,7 +524,7 @@ | |||
542 | 537 | font.weight: Font.DemiBold | 524 | font.weight: Font.DemiBold |
543 | 538 | horizontalAlignment: Text.AlignHCenter | 525 | horizontalAlignment: Text.AlignHCenter |
544 | 539 | text: i18n.tr("Downloaded") | 526 | text: i18n.tr("Downloaded") |
546 | 540 | color: episodesPage.mode == "downloaded" ? podbird.appTheme.focusText : podbird.appTheme.baseText | 527 | color: episodesPage.mode == "downloaded" ? theme.palette.normal.positionText : theme.palette.normal.backgroundTertiaryText |
547 | 541 | 528 | ||
548 | 542 | AbstractButton { | 529 | AbstractButton { |
549 | 543 | anchors.fill: parent | 530 | anchors.fill: parent |
550 | @@ -557,7 +544,7 @@ | |||
551 | 557 | id: listItem | 544 | id: listItem |
552 | 558 | 545 | ||
553 | 559 | divider.visible: false | 546 | divider.visible: false |
555 | 560 | highlightColor: podbird.appTheme.hightlightListView | 547 | highlightColor: theme.palette.selected.background |
556 | 561 | height: visible ? listItemLayout.height + progressBarLoader.height + units.gu(1) : 0 | 548 | height: visible ? listItemLayout.height + progressBarLoader.height + units.gu(1) : 0 |
557 | 562 | 549 | ||
558 | 563 | visible: episodesPage.mode == "listened" ? model.listened | 550 | visible: episodesPage.mode == "listened" ? model.listened |
559 | @@ -568,8 +555,8 @@ | |||
560 | 568 | id: listItemLayout | 555 | id: listItemLayout |
561 | 569 | 556 | ||
562 | 570 | title.text: model.name !== undefined ? model.name.trim() : "Undefined" | 557 | title.text: model.name !== undefined ? model.name.trim() : "Undefined" |
565 | 571 | title.color: downloader.downloadingGuid === model.guid ? podbird.appTheme.focusText | 558 | title.color: downloader.downloadingGuid === model.guid ? theme.palette.normal.positionText |
566 | 572 | : podbird.appTheme.baseText | 559 | : theme.palette.normal.backgroundText |
567 | 573 | // #FIXME: Change this 2 to prevent title eliding when UITK is updated to rev > 1800 | 560 | // #FIXME: Change this 2 to prevent title eliding when UITK is updated to rev > 1800 |
568 | 574 | title.maximumLineCount: 1 | 561 | title.maximumLineCount: 1 |
569 | 575 | 562 | ||
570 | @@ -577,7 +564,6 @@ | |||
571 | 577 | : Qt.formatDate(new Date(model.published), "MMM d, yyyy") | 564 | : Qt.formatDate(new Date(model.published), "MMM d, yyyy") |
572 | 578 | : model.downloadedfile ? "š " + Podcasts.formatEpisodeTime(model.duration) + " | " + Qt.formatDate(new Date(model.published), "MMM d, yyyy") | 565 | : model.downloadedfile ? "š " + Podcasts.formatEpisodeTime(model.duration) + " | " + Qt.formatDate(new Date(model.published), "MMM d, yyyy") |
573 | 579 | : Podcasts.formatEpisodeTime(model.duration) + " | " + Qt.formatDate(new Date(model.published), "MMM d, yyyy") | 566 | : Podcasts.formatEpisodeTime(model.duration) + " | " + Qt.formatDate(new Date(model.published), "MMM d, yyyy") |
574 | 580 | subtitle.color: podbird.appTheme.baseSubText | ||
575 | 581 | 567 | ||
576 | 582 | padding.top: units.gu(1) | 568 | padding.top: units.gu(1) |
577 | 583 | padding.bottom: units.gu(0.5) | 569 | padding.bottom: units.gu(0.5) |
578 | @@ -707,7 +693,6 @@ | |||
579 | 707 | Scrollbar { | 693 | Scrollbar { |
580 | 708 | flickableItem: episodeList | 694 | flickableItem: episodeList |
581 | 709 | align: Qt.AlignTrailing | 695 | align: Qt.AlignTrailing |
582 | 710 | StyleHints { sliderColor: podbird.appTheme.focusText } | ||
583 | 711 | } | 696 | } |
584 | 712 | } | 697 | } |
585 | 713 | 698 | ||
586 | 714 | 699 | ||
587 | === modified file 'app/ui/EpisodesTab.qml' | |||
588 | --- app/ui/EpisodesTab.qml 2016-03-24 16:43:33 +0000 | |||
589 | +++ app/ui/EpisodesTab.qml 2016-05-30 18:00:34 +0000 | |||
590 | @@ -47,10 +47,6 @@ | |||
591 | 47 | visible: episodesPage.header === standardHeader | 47 | visible: episodesPage.header === standardHeader |
592 | 48 | title: i18n.tr("Episodes") | 48 | title: i18n.tr("Episodes") |
593 | 49 | 49 | ||
594 | 50 | StyleHints { | ||
595 | 51 | backgroundColor: podbird.appTheme.background | ||
596 | 52 | } | ||
597 | 53 | |||
598 | 54 | leadingActionBar { | 50 | leadingActionBar { |
599 | 55 | numberOfSlots: 0 | 51 | numberOfSlots: 0 |
600 | 56 | actions: tabsList.actions | 52 | actions: tabsList.actions |
601 | @@ -75,10 +71,6 @@ | |||
602 | 75 | bottom: parent.bottom | 71 | bottom: parent.bottom |
603 | 76 | } | 72 | } |
604 | 77 | 73 | ||
605 | 78 | StyleHints { | ||
606 | 79 | selectedSectionColor: podbird.appTheme.focusText | ||
607 | 80 | } | ||
608 | 81 | |||
609 | 82 | model: [i18n.tr("Recent"), i18n.tr("Downloads"), i18n.tr("Favourites")] | 74 | model: [i18n.tr("Recent"), i18n.tr("Downloads"), i18n.tr("Favourites")] |
610 | 83 | onSelectedIndexChanged: { | 75 | onSelectedIndexChanged: { |
611 | 84 | refreshModel(); | 76 | refreshModel(); |
612 | @@ -90,10 +82,6 @@ | |||
613 | 90 | id: searchHeader | 82 | id: searchHeader |
614 | 91 | visible: episodesPage.header === searchHeader | 83 | visible: episodesPage.header === searchHeader |
615 | 92 | 84 | ||
616 | 93 | StyleHints { | ||
617 | 94 | backgroundColor: podbird.appTheme.background | ||
618 | 95 | } | ||
619 | 96 | |||
620 | 97 | contents: Loader { | 85 | contents: Loader { |
621 | 98 | id: searchField | 86 | id: searchField |
622 | 99 | sourceComponent: episodesPage.header === searchHeader ? searchFieldComponent : undefined | 87 | sourceComponent: episodesPage.header === searchHeader ? searchFieldComponent : undefined |
623 | @@ -133,10 +121,6 @@ | |||
624 | 133 | } | 121 | } |
625 | 134 | } | 122 | } |
626 | 135 | 123 | ||
627 | 136 | StyleHints { | ||
628 | 137 | backgroundColor: podbird.appTheme.background | ||
629 | 138 | } | ||
630 | 139 | |||
631 | 140 | leadingActionBar.actions: [ | 124 | leadingActionBar.actions: [ |
632 | 141 | Action { | 125 | Action { |
633 | 142 | iconName: "back" | 126 | iconName: "back" |
634 | @@ -409,15 +393,15 @@ | |||
635 | 409 | Label { | 393 | Label { |
636 | 410 | width: parent.width | 394 | width: parent.width |
637 | 411 | wrapMode: Text.WordWrap | 395 | wrapMode: Text.WordWrap |
640 | 412 | linkColor: "Blue" | 396 | linkColor: podbird.appTheme.linkText |
641 | 413 | color: UbuntuColors.coolGrey | 397 | color: theme.palette.normal.overlayText |
642 | 414 | text: dialogInternal.description | 398 | text: dialogInternal.description |
643 | 415 | onLinkActivated: Qt.openUrlExternally(link) | 399 | onLinkActivated: Qt.openUrlExternally(link) |
644 | 416 | } | 400 | } |
645 | 417 | 401 | ||
646 | 418 | Button { | 402 | Button { |
647 | 419 | text: i18n.tr("Close") | 403 | text: i18n.tr("Close") |
649 | 420 | color: podbird.appTheme.positiveActionButton | 404 | color: theme.palette.normal.positive |
650 | 421 | onClicked: { | 405 | onClicked: { |
651 | 422 | PopupUtils.close(dialogInternal) | 406 | PopupUtils.close(dialogInternal) |
652 | 423 | } | 407 | } |
653 | @@ -531,15 +515,15 @@ | |||
654 | 531 | id: listItem | 515 | id: listItem |
655 | 532 | 516 | ||
656 | 533 | divider.visible: false | 517 | divider.visible: false |
658 | 534 | highlightColor: podbird.appTheme.hightlightListView | 518 | highlightColor: theme.palette.selected.background |
659 | 535 | height: downloader.downloadingGuid === model.guid ? listItemLayout.height + progressBarLoader.height + units.gu(1) : listItemLayout.height + units.gu(0.5) | 519 | height: downloader.downloadingGuid === model.guid ? listItemLayout.height + progressBarLoader.height + units.gu(1) : listItemLayout.height + units.gu(0.5) |
660 | 536 | 520 | ||
661 | 537 | ListItemLayout { | 521 | ListItemLayout { |
662 | 538 | id: listItemLayout | 522 | id: listItemLayout |
663 | 539 | 523 | ||
664 | 540 | title.text: model.name !== undefined ? model.name.trim() : "Undefined" | 524 | title.text: model.name !== undefined ? model.name.trim() : "Undefined" |
667 | 541 | title.color: downloader.downloadingGuid === model.guid ? podbird.appTheme.focusText | 525 | title.color: downloader.downloadingGuid === model.guid ? theme.palette.normal.positionText |
668 | 542 | : podbird.appTheme.baseText | 526 | : theme.palette.normal.backgroundText |
669 | 543 | // #FIXME: Change this 2 to prevent title eliding when UITK is updated to rev > 1800 | 527 | // #FIXME: Change this 2 to prevent title eliding when UITK is updated to rev > 1800 |
670 | 544 | title.maximumLineCount: 1 | 528 | title.maximumLineCount: 1 |
671 | 545 | 529 | ||
672 | @@ -547,7 +531,6 @@ | |||
673 | 547 | : model.artist | 531 | : model.artist |
674 | 548 | : model.downloadedfile ? "š " + Podcasts.formatEpisodeTime(model.duration) + " | " + model.artist | 532 | : model.downloadedfile ? "š " + Podcasts.formatEpisodeTime(model.duration) + " | " + model.artist |
675 | 549 | : Podcasts.formatEpisodeTime(model.duration) + " | " + model.artist | 533 | : Podcasts.formatEpisodeTime(model.duration) + " | " + model.artist |
676 | 550 | subtitle.color: podbird.appTheme.baseSubText | ||
677 | 551 | 534 | ||
678 | 552 | Image { | 535 | Image { |
679 | 553 | height: width | 536 | height: width |
680 | @@ -694,7 +677,6 @@ | |||
681 | 694 | Scrollbar { | 677 | Scrollbar { |
682 | 695 | flickableItem: episodeList | 678 | flickableItem: episodeList |
683 | 696 | align: Qt.AlignTrailing | 679 | align: Qt.AlignTrailing |
684 | 697 | StyleHints { sliderColor: podbird.appTheme.focusText } | ||
685 | 698 | } | 680 | } |
686 | 699 | 681 | ||
687 | 700 | PullToRefresh { | 682 | PullToRefresh { |
688 | 701 | 683 | ||
689 | === modified file 'app/ui/FullPlayingView.qml' | |||
690 | --- app/ui/FullPlayingView.qml 2016-03-24 16:39:24 +0000 | |||
691 | +++ app/ui/FullPlayingView.qml 2016-05-30 18:00:34 +0000 | |||
692 | @@ -103,7 +103,7 @@ | |||
693 | 103 | textSize: Label.Large | 103 | textSize: Label.Large |
694 | 104 | maximumLineCount: 2 | 104 | maximumLineCount: 2 |
695 | 105 | wrapMode: Text.WordWrap | 105 | wrapMode: Text.WordWrap |
697 | 106 | color: podbird.appTheme.baseText | 106 | color: theme.palette.normal.backgroundText |
698 | 107 | } | 107 | } |
699 | 108 | 108 | ||
700 | 109 | Label { | 109 | Label { |
701 | @@ -115,7 +115,7 @@ | |||
702 | 115 | text: currentArtist | 115 | text: currentArtist |
703 | 116 | elide: Text.ElideRight | 116 | elide: Text.ElideRight |
704 | 117 | textSize: Label.Small | 117 | textSize: Label.Small |
706 | 118 | color: podbird.appTheme.baseSubText | 118 | color: theme.palette.normal.backgroundSecondaryText |
707 | 119 | } | 119 | } |
708 | 120 | 120 | ||
709 | 121 | Slider { | 121 | Slider { |
710 | @@ -141,7 +141,6 @@ | |||
711 | 141 | } | 141 | } |
712 | 142 | 142 | ||
713 | 143 | function formatValue(v) { return Podcasts.formatTime(v/1000); } | 143 | function formatValue(v) { return Podcasts.formatTime(v/1000); } |
714 | 144 | StyleHints { foregroundColor: podbird.appTheme.focusText } | ||
715 | 145 | } | 144 | } |
716 | 146 | 145 | ||
717 | 147 | Connections { | 146 | Connections { |
718 | @@ -154,7 +153,7 @@ | |||
719 | 154 | textSize: Label.Small | 153 | textSize: Label.Small |
720 | 155 | anchors.left: scrubber.left | 154 | anchors.left: scrubber.left |
721 | 156 | anchors.top: scrubber.bottom | 155 | anchors.top: scrubber.bottom |
723 | 157 | color: podbird.appTheme.baseText | 156 | color: theme.palette.normal.backgroundText |
724 | 158 | text: Podcasts.formatTime(player.position / 1000) | 157 | text: Podcasts.formatTime(player.position / 1000) |
725 | 159 | } | 158 | } |
726 | 160 | 159 | ||
727 | @@ -163,7 +162,7 @@ | |||
728 | 163 | textSize: Label.Small | 162 | textSize: Label.Small |
729 | 164 | anchors.right: scrubber.right | 163 | anchors.right: scrubber.right |
730 | 165 | anchors.top: scrubber.bottom | 164 | anchors.top: scrubber.bottom |
732 | 166 | color: podbird.appTheme.baseText | 165 | color: theme.palette.normal.backgroundText |
733 | 167 | text: Podcasts.formatTime(player.duration / 1000) | 166 | text: Podcasts.formatTime(player.duration / 1000) |
734 | 168 | } | 167 | } |
735 | 169 | 168 | ||
736 | @@ -188,7 +187,7 @@ | |||
737 | 188 | width: units.gu(3) | 187 | width: units.gu(3) |
738 | 189 | height: width | 188 | height: width |
739 | 190 | anchors.centerIn: parent | 189 | anchors.centerIn: parent |
741 | 191 | color: podbird.appTheme.baseIcon | 190 | color: theme.palette.normal.backgroundText |
742 | 192 | name: "media-skip-backward" | 191 | name: "media-skip-backward" |
743 | 193 | } | 192 | } |
744 | 194 | } | 193 | } |
745 | @@ -214,7 +213,7 @@ | |||
746 | 214 | // xgettext: no-c-format | 213 | // xgettext: no-c-format |
747 | 215 | text: i18n.tr("-%1s").arg(podbird.settings.skipBack) | 214 | text: i18n.tr("-%1s").arg(podbird.settings.skipBack) |
748 | 216 | textSize: Label.XxSmall | 215 | textSize: Label.XxSmall |
750 | 217 | color: podbird.appTheme.baseText | 216 | color: theme.palette.normal.backgroundText |
751 | 218 | anchors.verticalCenter: skipBackwardIcon.verticalCenter | 217 | anchors.verticalCenter: skipBackwardIcon.verticalCenter |
752 | 219 | } | 218 | } |
753 | 220 | 219 | ||
754 | @@ -223,7 +222,7 @@ | |||
755 | 223 | width: units.gu(3) | 222 | width: units.gu(3) |
756 | 224 | height: width | 223 | height: width |
757 | 225 | name: "media-seek-backward" | 224 | name: "media-seek-backward" |
759 | 226 | color: podbird.appTheme.baseIcon | 225 | color: theme.palette.normal.backgroundText |
760 | 227 | } | 226 | } |
761 | 228 | } | 227 | } |
762 | 229 | } | 228 | } |
763 | @@ -240,7 +239,7 @@ | |||
764 | 240 | width: units.gu(6) | 239 | width: units.gu(6) |
765 | 241 | height: width | 240 | height: width |
766 | 242 | anchors.centerIn: parent | 241 | anchors.centerIn: parent |
768 | 243 | color: podbird.appTheme.baseIcon | 242 | color: theme.palette.normal.backgroundText |
769 | 244 | name: player.playbackState === MediaPlayer.PlayingState ? "media-playback-pause" | 243 | name: player.playbackState === MediaPlayer.PlayingState ? "media-playback-pause" |
770 | 245 | : "media-playback-start" | 244 | : "media-playback-start" |
771 | 246 | } | 245 | } |
772 | @@ -267,7 +266,7 @@ | |||
773 | 267 | width: units.gu(3) | 266 | width: units.gu(3) |
774 | 268 | height: width | 267 | height: width |
775 | 269 | name: "media-seek-forward" | 268 | name: "media-seek-forward" |
777 | 270 | color: podbird.appTheme.baseIcon | 269 | color: theme.palette.normal.backgroundText |
778 | 271 | } | 270 | } |
779 | 272 | 271 | ||
780 | 273 | Label { | 272 | Label { |
781 | @@ -275,7 +274,7 @@ | |||
782 | 275 | // xgettext: no-c-format | 274 | // xgettext: no-c-format |
783 | 276 | text: i18n.tr("+%1s").arg(podbird.settings.skipForward) | 275 | text: i18n.tr("+%1s").arg(podbird.settings.skipForward) |
784 | 277 | textSize: Label.XxSmall | 276 | textSize: Label.XxSmall |
786 | 278 | color: podbird.appTheme.baseText | 277 | color: theme.palette.normal.backgroundText |
787 | 279 | anchors.verticalCenter: skipForwardIcon.verticalCenter | 278 | anchors.verticalCenter: skipForwardIcon.verticalCenter |
788 | 280 | } | 279 | } |
789 | 281 | } | 280 | } |
790 | @@ -295,7 +294,7 @@ | |||
791 | 295 | width: units.gu(3) | 294 | width: units.gu(3) |
792 | 296 | height: width | 295 | height: width |
793 | 297 | anchors.centerIn: parent | 296 | anchors.centerIn: parent |
795 | 298 | color: podbird.appTheme.baseIcon | 297 | color: theme.palette.normal.backgroundText |
796 | 299 | name: "media-skip-forward" | 298 | name: "media-skip-forward" |
797 | 300 | } | 299 | } |
798 | 301 | } | 300 | } |
799 | 302 | 301 | ||
800 | === modified file 'app/ui/NowPlayingPage.qml' | |||
801 | --- app/ui/NowPlayingPage.qml 2016-03-17 00:37:17 +0000 | |||
802 | +++ app/ui/NowPlayingPage.qml 2016-05-30 18:00:34 +0000 | |||
803 | @@ -33,10 +33,6 @@ | |||
804 | 33 | header: PageHeader { | 33 | header: PageHeader { |
805 | 34 | title: i18n.tr("Now Playing") | 34 | title: i18n.tr("Now Playing") |
806 | 35 | 35 | ||
807 | 36 | StyleHints { | ||
808 | 37 | backgroundColor: podbird.appTheme.background | ||
809 | 38 | } | ||
810 | 39 | |||
811 | 40 | leadingActionBar.actions: Action { | 36 | leadingActionBar.actions: Action { |
812 | 41 | iconName: "back" | 37 | iconName: "back" |
813 | 42 | text: i18n.tr("Back") | 38 | text: i18n.tr("Back") |
814 | @@ -67,9 +63,6 @@ | |||
815 | 67 | bottom: parent.bottom | 63 | bottom: parent.bottom |
816 | 68 | } | 64 | } |
817 | 69 | 65 | ||
818 | 70 | StyleHints { | ||
819 | 71 | selectedSectionColor: podbird.appTheme.focusText | ||
820 | 72 | } | ||
821 | 73 | model: [i18n.tr("Full view"), i18n.tr("Queue")] | 66 | model: [i18n.tr("Full view"), i18n.tr("Queue")] |
822 | 74 | } | 67 | } |
823 | 75 | } | 68 | } |
824 | 76 | 69 | ||
825 | === modified file 'app/ui/PlayerControls.qml' | |||
826 | --- app/ui/PlayerControls.qml 2016-03-14 00:19:15 +0000 | |||
827 | +++ app/ui/PlayerControls.qml 2016-05-30 18:00:34 +0000 | |||
828 | @@ -20,10 +20,17 @@ | |||
829 | 20 | import QtMultimedia 5.6 | 20 | import QtMultimedia 5.6 |
830 | 21 | import Ubuntu.Components 1.3 | 21 | import Ubuntu.Components 1.3 |
831 | 22 | 22 | ||
833 | 23 | Rectangle { | 23 | StyledItem { |
834 | 24 | id: controlRect | 24 | id: controlRect |
835 | 25 | 25 | ||
837 | 26 | color: podbird.appTheme.bottomBarBackground | 26 | theme: ThemeSettings { |
838 | 27 | name: appTheme.bottomBarTheme | ||
839 | 28 | } | ||
840 | 29 | |||
841 | 30 | Rectangle { | ||
842 | 31 | anchors.fill: parent | ||
843 | 32 | color: theme.palette.normal.overlay | ||
844 | 33 | } | ||
845 | 27 | 34 | ||
846 | 28 | MouseArea { | 35 | MouseArea { |
847 | 29 | z: -1 | 36 | z: -1 |
848 | @@ -47,7 +54,7 @@ | |||
849 | 47 | id: progressBarHint | 54 | id: progressBarHint |
850 | 48 | anchors.left: parent.left | 55 | anchors.left: parent.left |
851 | 49 | anchors.top: cover.bottom | 56 | anchors.top: cover.bottom |
853 | 50 | color: podbird.appTheme.focusText | 57 | color: theme.palette.normal.activity |
854 | 51 | height: units.gu(0.25) | 58 | height: units.gu(0.25) |
855 | 52 | width: player.duration > 0 ? (player.position / player.duration) * parent.width : 0 | 59 | width: player.duration > 0 ? (player.position / player.duration) * parent.width : 0 |
856 | 53 | } | 60 | } |
857 | @@ -63,7 +70,7 @@ | |||
858 | 63 | font.weight: Font.Bold | 70 | font.weight: Font.Bold |
859 | 64 | anchors.left: parent.left | 71 | anchors.left: parent.left |
860 | 65 | anchors.right: parent.right | 72 | anchors.right: parent.right |
862 | 66 | color: "white" | 73 | color: theme.palette.normal.overlayText |
863 | 67 | elide: Text.ElideRight | 74 | elide: Text.ElideRight |
864 | 68 | maximumLineCount: 2 | 75 | maximumLineCount: 2 |
865 | 69 | wrapMode: Text.WordWrap | 76 | wrapMode: Text.WordWrap |
866 | @@ -72,7 +79,7 @@ | |||
867 | 72 | 79 | ||
868 | 73 | Label { | 80 | Label { |
869 | 74 | textSize: Label.Small | 81 | textSize: Label.Small |
871 | 75 | color: "#999999" | 82 | color: theme.palette.normal.overlaySecondaryText |
872 | 76 | text: currentArtist | 83 | text: currentArtist |
873 | 77 | elide: Text.ElideRight | 84 | elide: Text.ElideRight |
874 | 78 | font.weight: Font.Light | 85 | font.weight: Font.Light |
875 | @@ -92,7 +99,7 @@ | |||
876 | 92 | Rectangle { | 99 | Rectangle { |
877 | 93 | id: playButtonBackground | 100 | id: playButtonBackground |
878 | 94 | anchors.fill: parent | 101 | anchors.fill: parent |
880 | 95 | color: "#FFF" | 102 | color: theme.palette.normal.overlayText |
881 | 96 | opacity: 0.1 | 103 | opacity: 0.1 |
882 | 97 | visible: playButton.pressed | 104 | visible: playButton.pressed |
883 | 98 | } | 105 | } |
884 | @@ -101,7 +108,7 @@ | |||
885 | 101 | : player.play() | 108 | : player.play() |
886 | 102 | 109 | ||
887 | 103 | Icon { | 110 | Icon { |
889 | 104 | color: "white" | 111 | color: theme.palette.normal.overlayText |
890 | 105 | width: units.gu(3) | 112 | width: units.gu(3) |
891 | 106 | height: width | 113 | height: width |
892 | 107 | anchors.centerIn: playButtonBackground | 114 | anchors.centerIn: playButtonBackground |
893 | 108 | 115 | ||
894 | === modified file 'app/ui/PodcastsTab.qml' | |||
895 | --- app/ui/PodcastsTab.qml 2016-03-29 11:02:46 +0000 | |||
896 | +++ app/ui/PodcastsTab.qml 2016-05-30 18:00:34 +0000 | |||
897 | @@ -42,10 +42,6 @@ | |||
898 | 42 | title: i18n.tr("Podcasts") | 42 | title: i18n.tr("Podcasts") |
899 | 43 | visible: podcastPage.header === standardHeader | 43 | visible: podcastPage.header === standardHeader |
900 | 44 | 44 | ||
901 | 45 | StyleHints { | ||
902 | 46 | backgroundColor: podbird.appTheme.background | ||
903 | 47 | } | ||
904 | 48 | |||
905 | 49 | leadingActionBar { | 45 | leadingActionBar { |
906 | 50 | numberOfSlots: 0 | 46 | numberOfSlots: 0 |
907 | 51 | actions: tabsList.actions | 47 | actions: tabsList.actions |
908 | @@ -67,10 +63,6 @@ | |||
909 | 67 | id: searchHeader | 63 | id: searchHeader |
910 | 68 | visible: podcastPage.header === searchHeader | 64 | visible: podcastPage.header === searchHeader |
911 | 69 | 65 | ||
912 | 70 | StyleHints { | ||
913 | 71 | backgroundColor: podbird.appTheme.background | ||
914 | 72 | } | ||
915 | 73 | |||
916 | 74 | contents: Loader { | 66 | contents: Loader { |
917 | 75 | id: searchField | 67 | id: searchField |
918 | 76 | sourceComponent: podcastPage.header === searchHeader ? searchFieldComponent : undefined | 68 | sourceComponent: podcastPage.header === searchHeader ? searchFieldComponent : undefined |
919 | @@ -207,14 +199,13 @@ | |||
920 | 207 | 199 | ||
921 | 208 | height: listItemLayout.height | 200 | height: listItemLayout.height |
922 | 209 | divider.visible: false | 201 | divider.visible: false |
924 | 210 | highlightColor: podbird.appTheme.hightlightListView | 202 | highlightColor: theme.palette.selected.background |
925 | 211 | 203 | ||
926 | 212 | ListItemLayout { | 204 | ListItemLayout { |
927 | 213 | id: listItemLayout | 205 | id: listItemLayout |
928 | 214 | title.text: model.name !== undefined ? model.name.trim() : "Undefined" | 206 | title.text: model.name !== undefined ? model.name.trim() : "Undefined" |
929 | 215 | summary.text: model.episodeCount > 0 ? i18n.tr("%1 unheard episode", "%1 unheard episodes", model.episodeCount).arg(model.episodeCount) | 207 | summary.text: model.episodeCount > 0 ? i18n.tr("%1 unheard episode", "%1 unheard episodes", model.episodeCount).arg(model.episodeCount) |
930 | 216 | : "" | 208 | : "" |
931 | 217 | summary.color: podbird.appTheme.baseSubText | ||
932 | 218 | 209 | ||
933 | 219 | Image { | 210 | Image { |
934 | 220 | height: width | 211 | height: width |
935 | @@ -257,7 +248,6 @@ | |||
936 | 257 | Scrollbar { | 248 | Scrollbar { |
937 | 258 | flickableItem: listView | 249 | flickableItem: listView |
938 | 259 | align: Qt.AlignTrailing | 250 | align: Qt.AlignTrailing |
939 | 260 | StyleHints { sliderColor: podbird.appTheme.focusText } | ||
940 | 261 | } | 251 | } |
941 | 262 | 252 | ||
942 | 263 | PullToRefresh { | 253 | PullToRefresh { |
943 | 264 | 254 | ||
944 | === modified file 'app/ui/Queue.qml' | |||
945 | --- app/ui/Queue.qml 2016-03-24 16:39:24 +0000 | |||
946 | +++ app/ui/Queue.qml 2016-05-30 18:00:34 +0000 | |||
947 | @@ -58,11 +58,10 @@ | |||
948 | 58 | title.text: layout.metaModel.name | 58 | title.text: layout.metaModel.name |
949 | 59 | // #FIXME: Change this 2 to prevent title eliding when UITK is updated to rev > 1800 | 59 | // #FIXME: Change this 2 to prevent title eliding when UITK is updated to rev > 1800 |
950 | 60 | title.maximumLineCount: 1 | 60 | title.maximumLineCount: 1 |
953 | 61 | title.color: player.playlist.currentIndex === index ? podbird.appTheme.focusText | 61 | title.color: player.playlist.currentIndex === index ? theme.palette.normal.positionText |
954 | 62 | : podbird.appTheme.baseText | 62 | : theme.palette.normal.backgroundText |
955 | 63 | 63 | ||
956 | 64 | subtitle.text: layout.metaModel.artist | 64 | subtitle.text: layout.metaModel.artist |
957 | 65 | subtitle.color: podbird.appTheme.baseSubText | ||
958 | 66 | } | 65 | } |
959 | 67 | 66 | ||
960 | 68 | leadingActions: ListItemActions { | 67 | leadingActions: ListItemActions { |
961 | 69 | 68 | ||
962 | === modified file 'app/ui/SearchPage.qml' | |||
963 | --- app/ui/SearchPage.qml 2016-03-28 23:47:24 +0000 | |||
964 | +++ app/ui/SearchPage.qml 2016-05-30 18:00:34 +0000 | |||
965 | @@ -40,10 +40,6 @@ | |||
966 | 40 | visible: searchPage.header === standardHeader | 40 | visible: searchPage.header === standardHeader |
967 | 41 | title: i18n.tr("Add New Podcasts") | 41 | title: i18n.tr("Add New Podcasts") |
968 | 42 | 42 | ||
969 | 43 | StyleHints { | ||
970 | 44 | backgroundColor: podbird.appTheme.background | ||
971 | 45 | } | ||
972 | 46 | |||
973 | 47 | leadingActionBar { | 43 | leadingActionBar { |
974 | 48 | numberOfSlots: 0 | 44 | numberOfSlots: 0 |
975 | 49 | actions: tabsList.actions | 45 | actions: tabsList.actions |
976 | @@ -75,10 +71,6 @@ | |||
977 | 75 | 71 | ||
978 | 76 | visible: searchPage.header === searchHeader | 72 | visible: searchPage.header === searchHeader |
979 | 77 | 73 | ||
980 | 78 | StyleHints { | ||
981 | 79 | backgroundColor: podbird.appTheme.background | ||
982 | 80 | } | ||
983 | 81 | |||
984 | 82 | contents: Loader { | 74 | contents: Loader { |
985 | 83 | id: searchField | 75 | id: searchField |
986 | 84 | sourceComponent: searchPage.header === searchHeader ? searchFieldComponent : undefined | 76 | sourceComponent: searchPage.header === searchHeader ? searchFieldComponent : undefined |
987 | @@ -104,10 +96,6 @@ | |||
988 | 104 | 96 | ||
989 | 105 | visible: searchPage.header === addHeader | 97 | visible: searchPage.header === addHeader |
990 | 106 | 98 | ||
991 | 107 | StyleHints { | ||
992 | 108 | backgroundColor: podbird.appTheme.background | ||
993 | 109 | } | ||
994 | 110 | |||
995 | 111 | contents: Loader { | 99 | contents: Loader { |
996 | 112 | id: feedUrlField | 100 | id: feedUrlField |
997 | 113 | sourceComponent: searchPage.header === addHeader ? feedUrlComponent : undefined | 101 | sourceComponent: searchPage.header === addHeader ? feedUrlComponent : undefined |
998 | @@ -177,7 +165,6 @@ | |||
999 | 177 | text: i18n.tr("Please check the URL and try again") | 165 | text: i18n.tr("Please check the URL and try again") |
1000 | 178 | Button { | 166 | Button { |
1001 | 179 | text: i18n.tr("Close") | 167 | text: i18n.tr("Close") |
1002 | 180 | color: podbird.appTheme.neutralActionButton | ||
1003 | 181 | onClicked: { | 168 | onClicked: { |
1004 | 182 | PopupUtils.close(dialogInternal) | 169 | PopupUtils.close(dialogInternal) |
1005 | 183 | } | 170 | } |
1006 | @@ -248,7 +235,7 @@ | |||
1007 | 248 | divider.visible: false | 235 | divider.visible: false |
1008 | 249 | highlightColor: "Transparent" | 236 | highlightColor: "Transparent" |
1009 | 250 | height: expanded ? listItemLayout.height + descriptionLoader.height + units.gu(1) : listItemLayout.height + units.gu(0.5) | 237 | height: expanded ? listItemLayout.height + descriptionLoader.height + units.gu(1) : listItemLayout.height + units.gu(0.5) |
1011 | 251 | color: index % 2 === 0 ? podbird.appTheme.hightlightListView : "Transparent" | 238 | color: index % 2 === 0 ? theme.palette.selected.background : "Transparent" |
1012 | 252 | 239 | ||
1013 | 253 | ListItemLayout { | 240 | ListItemLayout { |
1014 | 254 | id: listItemLayout | 241 | id: listItemLayout |
1015 | @@ -256,7 +243,6 @@ | |||
1016 | 256 | title.text: model.name | 243 | title.text: model.name |
1017 | 257 | 244 | ||
1018 | 258 | subtitle.text: model.artist | 245 | subtitle.text: model.artist |
1019 | 259 | subtitle.color: podbird.appTheme.baseSubText | ||
1020 | 260 | 246 | ||
1021 | 261 | padding.top: units.gu(1) | 247 | padding.top: units.gu(1) |
1022 | 262 | padding.bottom: units.gu(0.5) | 248 | padding.bottom: units.gu(0.5) |
1023 | @@ -271,7 +257,7 @@ | |||
1024 | 271 | 257 | ||
1025 | 272 | Button { | 258 | Button { |
1026 | 273 | SlotsLayout.position: SlotsLayout.Trailing | 259 | SlotsLayout.position: SlotsLayout.Trailing |
1028 | 274 | color: !model.subscribed ? UbuntuColors.green : UbuntuColors.red | 260 | color: !model.subscribed ? theme.palette.normal.positive : theme.palette.normal.negative |
1029 | 275 | text: !model.subscribed ? i18n.tr("Subscribe") : i18n.tr("Unsubscribe") | 261 | text: !model.subscribed ? i18n.tr("Subscribe") : i18n.tr("Unsubscribe") |
1030 | 276 | onClicked: { | 262 | onClicked: { |
1031 | 277 | if (!model.subscribed) { | 263 | if (!model.subscribed) { |
1032 | @@ -313,7 +299,7 @@ | |||
1033 | 313 | text: i18n.tr("Last Updated: %1\n%2").arg(model.releaseDate.split("T")[0]).arg(model.description) | 299 | text: i18n.tr("Last Updated: %1\n%2").arg(model.releaseDate.split("T")[0]).arg(model.description) |
1034 | 314 | wrapMode: Text.WordWrap | 300 | wrapMode: Text.WordWrap |
1035 | 315 | textSize: Label.Small | 301 | textSize: Label.Small |
1037 | 316 | color: podbird.appTheme.baseSubText | 302 | color: theme.palette.normal.backgroundTertiaryText |
1038 | 317 | linkColor: podbird.appTheme.linkText | 303 | linkColor: podbird.appTheme.linkText |
1039 | 318 | height: expanded ? contentHeight : 0 | 304 | height: expanded ? contentHeight : 0 |
1040 | 319 | onLinkActivated: Qt.openUrlExternally(link) | 305 | onLinkActivated: Qt.openUrlExternally(link) |
1041 | 320 | 306 | ||
1042 | === modified file 'app/ui/SettingsPage.qml' | |||
1043 | --- app/ui/SettingsPage.qml 2016-05-30 18:00:34 +0000 | |||
1044 | +++ app/ui/SettingsPage.qml 2016-05-30 18:00:34 +0000 | |||
1045 | @@ -33,10 +33,6 @@ | |||
1046 | 33 | header: PageHeader { | 33 | header: PageHeader { |
1047 | 34 | title: i18n.tr("Settings") | 34 | title: i18n.tr("Settings") |
1048 | 35 | 35 | ||
1049 | 36 | StyleHints { | ||
1050 | 37 | backgroundColor: podbird.appTheme.background | ||
1051 | 38 | } | ||
1052 | 39 | |||
1053 | 40 | leadingActionBar { | 36 | leadingActionBar { |
1054 | 41 | numberOfSlots: 0 | 37 | numberOfSlots: 0 |
1055 | 42 | actions: tabsList.actions | 38 | actions: tabsList.actions |
1056 | @@ -70,12 +66,11 @@ | |||
1057 | 70 | maximumValue: 60 | 66 | maximumValue: 60 |
1058 | 71 | value: podbird.settings.skipForward | 67 | value: podbird.settings.skipForward |
1059 | 72 | function formatValue(v) { return i18n.tr("%1 second", "%1 seconds", Math.round(v)).arg(Math.round(v)) } | 68 | function formatValue(v) { return i18n.tr("%1 second", "%1 seconds", Math.round(v)).arg(Math.round(v)) } |
1060 | 73 | StyleHints { foregroundColor: podbird.appTheme.focusText } | ||
1061 | 74 | } | 69 | } |
1062 | 75 | 70 | ||
1063 | 76 | Button { | 71 | Button { |
1064 | 77 | text: i18n.tr("OK") | 72 | text: i18n.tr("OK") |
1066 | 78 | color: podbird.appTheme.positiveActionButton | 73 | color: theme.palette.normal.positive |
1067 | 79 | onClicked: { | 74 | onClicked: { |
1068 | 80 | podbird.settings.skipForward = Math.round(slider.value) | 75 | podbird.settings.skipForward = Math.round(slider.value) |
1069 | 81 | PopupUtils.close(dialogInternal) | 76 | PopupUtils.close(dialogInternal) |
1070 | @@ -83,7 +78,6 @@ | |||
1071 | 83 | } | 78 | } |
1072 | 84 | Button { | 79 | Button { |
1073 | 85 | text: i18n.tr("Cancel") | 80 | text: i18n.tr("Cancel") |
1074 | 86 | color: podbird.appTheme.neutralActionButton | ||
1075 | 87 | onClicked: { | 81 | onClicked: { |
1076 | 88 | PopupUtils.close(dialogInternal) | 82 | PopupUtils.close(dialogInternal) |
1077 | 89 | } | 83 | } |
1078 | @@ -105,12 +99,11 @@ | |||
1079 | 105 | maximumValue: 60 | 99 | maximumValue: 60 |
1080 | 106 | value: podbird.settings.skipBack | 100 | value: podbird.settings.skipBack |
1081 | 107 | function formatValue(v) { return i18n.tr("%1 second", "%1 seconds", Math.round(v)).arg(Math.round(v)) } | 101 | function formatValue(v) { return i18n.tr("%1 second", "%1 seconds", Math.round(v)).arg(Math.round(v)) } |
1082 | 108 | StyleHints { foregroundColor: podbird.appTheme.focusText } | ||
1083 | 109 | } | 102 | } |
1084 | 110 | 103 | ||
1085 | 111 | Button { | 104 | Button { |
1086 | 112 | text: i18n.tr("OK") | 105 | text: i18n.tr("OK") |
1088 | 113 | color: podbird.appTheme.positiveActionButton | 106 | color: theme.palette.normal.positive |
1089 | 114 | onClicked: { | 107 | onClicked: { |
1090 | 115 | podbird.settings.skipBack = Math.round(slider.value) | 108 | podbird.settings.skipBack = Math.round(slider.value) |
1091 | 116 | PopupUtils.close(dialogInternal) | 109 | PopupUtils.close(dialogInternal) |
1092 | @@ -118,7 +111,6 @@ | |||
1093 | 118 | } | 111 | } |
1094 | 119 | Button { | 112 | Button { |
1095 | 120 | text: i18n.tr("Cancel") | 113 | text: i18n.tr("Cancel") |
1096 | 121 | color: podbird.appTheme.neutralActionButton | ||
1097 | 122 | onClicked: { | 114 | onClicked: { |
1098 | 123 | PopupUtils.close(dialogInternal) | 115 | PopupUtils.close(dialogInternal) |
1099 | 124 | } | 116 | } |
1100 | @@ -188,9 +180,7 @@ | |||
1101 | 188 | ListItemLayout { | 180 | ListItemLayout { |
1102 | 189 | id: deleteLayout | 181 | id: deleteLayout |
1103 | 190 | title.text: i18n.tr("Automatically delete old episodes") | 182 | title.text: i18n.tr("Automatically delete old episodes") |
1104 | 191 | title.color: podbird.appTheme.baseText | ||
1105 | 192 | summary.text: i18n.tr("Delete episodes that are older than a given number of days for each podcast") | 183 | summary.text: i18n.tr("Delete episodes that are older than a given number of days for each podcast") |
1106 | 193 | summary.color: podbird.appTheme.baseSubText | ||
1107 | 194 | ProgressionSlot {} | 184 | ProgressionSlot {} |
1108 | 195 | } | 185 | } |
1109 | 196 | divider.visible: false | 186 | divider.visible: false |
1110 | @@ -202,9 +192,7 @@ | |||
1111 | 202 | ListItemLayout { | 192 | ListItemLayout { |
1112 | 203 | id: downloadLayout | 193 | id: downloadLayout |
1113 | 204 | title.text: i18n.tr("Automatically download new episodes") | 194 | title.text: i18n.tr("Automatically download new episodes") |
1114 | 205 | title.color: podbird.appTheme.baseText | ||
1115 | 206 | summary.text: i18n.tr("Default number of new episodes to download for each podcast") | 195 | summary.text: i18n.tr("Default number of new episodes to download for each podcast") |
1116 | 207 | summary.color: podbird.appTheme.baseSubText | ||
1117 | 208 | ProgressionSlot{} | 196 | ProgressionSlot{} |
1118 | 209 | } | 197 | } |
1119 | 210 | divider.visible: false | 198 | divider.visible: false |
1120 | @@ -221,9 +209,7 @@ | |||
1121 | 221 | ListItemLayout { | 209 | ListItemLayout { |
1122 | 222 | id: refreshArt | 210 | id: refreshArt |
1123 | 223 | title.text: i18n.tr("Refresh podcast artwork") | 211 | title.text: i18n.tr("Refresh podcast artwork") |
1124 | 224 | title.color: podbird.appTheme.baseText | ||
1125 | 225 | summary.text: i18n.tr("Update all podcasts artwork and fix missing ones (this only works with podcasts added via iTunesĀ® search)") | 212 | summary.text: i18n.tr("Update all podcasts artwork and fix missing ones (this only works with podcasts added via iTunesĀ® search)") |
1126 | 226 | summary.color: podbird.appTheme.baseSubText | ||
1127 | 227 | summary.maximumLineCount: 3 | 213 | summary.maximumLineCount: 3 |
1128 | 228 | ProgressionSlot{} | 214 | ProgressionSlot{} |
1129 | 229 | } | 215 | } |
1130 | @@ -263,9 +249,7 @@ | |||
1131 | 263 | ListItemLayout { | 249 | ListItemLayout { |
1132 | 264 | id: orphanLayout | 250 | id: orphanLayout |
1133 | 265 | title.text: i18n.tr("Delete orphaned files and links") | 251 | title.text: i18n.tr("Delete orphaned files and links") |
1134 | 266 | title.color: podbird.appTheme.baseText | ||
1135 | 267 | summary.text: i18n.tr("Free space by removing orphaned downloaded files and links") | 252 | summary.text: i18n.tr("Free space by removing orphaned downloaded files and links") |
1136 | 268 | summary.color: podbird.appTheme.baseSubText | ||
1137 | 269 | ProgressionSlot {} | 253 | ProgressionSlot {} |
1138 | 270 | } | 254 | } |
1139 | 271 | 255 | ||
1140 | @@ -301,7 +285,7 @@ | |||
1141 | 301 | 285 | ||
1142 | 302 | Button { | 286 | Button { |
1143 | 303 | text: i18n.tr("Close") | 287 | text: i18n.tr("Close") |
1145 | 304 | color: podbird.appTheme.positiveActionButton | 288 | color: theme.palette.normal.positive |
1146 | 305 | onClicked: { | 289 | onClicked: { |
1147 | 306 | PopupUtils.close(dialogInternal) | 290 | PopupUtils.close(dialogInternal) |
1148 | 307 | } | 291 | } |
1149 | @@ -319,7 +303,6 @@ | |||
1150 | 319 | ListItemLayout { | 303 | ListItemLayout { |
1151 | 320 | // TRANSLATORS: About as in information about the app | 304 | // TRANSLATORS: About as in information about the app |
1152 | 321 | title.text: i18n.tr("About") | 305 | title.text: i18n.tr("About") |
1153 | 322 | title.color: podbird.appTheme.baseText | ||
1154 | 323 | ProgressionSlot {} | 306 | ProgressionSlot {} |
1155 | 324 | } | 307 | } |
1156 | 325 | divider.visible: false | 308 | divider.visible: false |
1157 | @@ -329,7 +312,6 @@ | |||
1158 | 329 | ListItem { | 312 | ListItem { |
1159 | 330 | ListItemLayout { | 313 | ListItemLayout { |
1160 | 331 | title.text: i18n.tr("Report Bug") | 314 | title.text: i18n.tr("Report Bug") |
1161 | 332 | title.color: podbird.appTheme.baseText | ||
1162 | 333 | ProgressionSlot {} | 315 | ProgressionSlot {} |
1163 | 334 | } | 316 | } |
1164 | 335 | divider.visible: false | 317 | divider.visible: false |
1165 | 336 | 318 | ||
1166 | === modified file 'app/welcomewizard/Slide1.qml' | |||
1167 | --- app/welcomewizard/Slide1.qml 2016-03-04 10:40:54 +0000 | |||
1168 | +++ app/welcomewizard/Slide1.qml 2016-05-30 18:00:34 +0000 | |||
1169 | @@ -65,7 +65,7 @@ | |||
1170 | 65 | anchors.right: parent.right | 65 | anchors.right: parent.right |
1171 | 66 | anchors.margins: units.gu(1) | 66 | anchors.margins: units.gu(1) |
1172 | 67 | anchors.bottom: parent.bottom | 67 | anchors.bottom: parent.bottom |
1174 | 68 | color: "grey" | 68 | color: theme.palette.normal.backgroundSecondaryText |
1175 | 69 | textSize: Label.Small | 69 | textSize: Label.Small |
1176 | 70 | wrapMode: Text.WordWrap | 70 | wrapMode: Text.WordWrap |
1177 | 71 | horizontalAlignment: Text.AlignHCenter | 71 | horizontalAlignment: Text.AlignHCenter |
1178 | 72 | 72 | ||
1179 | === modified file 'app/welcomewizard/Slide7.qml' | |||
1180 | --- app/welcomewizard/Slide7.qml 2016-03-18 12:44:26 +0000 | |||
1181 | +++ app/welcomewizard/Slide7.qml 2016-05-30 18:00:34 +0000 | |||
1182 | @@ -72,7 +72,7 @@ | |||
1183 | 72 | } | 72 | } |
1184 | 73 | height: units.gu(6) | 73 | height: units.gu(6) |
1185 | 74 | width: parent.width/1.3 | 74 | width: parent.width/1.3 |
1187 | 75 | color: UbuntuColors.green | 75 | color: theme.palette.normal.positive |
1188 | 76 | text: i18n.tr("Finish") | 76 | text: i18n.tr("Finish") |
1189 | 77 | onClicked: finished() | 77 | onClicked: finished() |
1190 | 78 | } | 78 | } |
Hmm I am having doubts about this. The green color we use is part of the app branding. Reverting this to the system colors defies this purpose. I'll defer this decision to Michael Sheldon.