Merge lp:~vthompson/music-app/theme-slider into lp:music-app/remix
- theme-slider
- Merge into remix
Status: | Merged |
---|---|
Approved by: | Victor Thompson |
Approved revision: | 746 |
Merged at revision: | 746 |
Proposed branch: | lp:~vthompson/music-app/theme-slider |
Merge into: | lp:music-app/remix |
Diff against target: |
486 lines (+408/-4) 8 files modified
MusicNowPlaying.qml (+2/-4) common/Themes/Ambiance/BubbleShape.qml (+172/-0) common/Themes/Ambiance/PartialColorize.qml (+51/-0) common/Themes/Ambiance/PartialColorizeUbuntuShape.qml (+36/-0) common/Themes/Ambiance/UbuntuBlueSliderStyle.qml (+126/-0) common/Themes/Ambiance/artwork/bubble_shadow@20.sci (+7/-0) common/Themes/Ambiance/artwork/bubble_shadow@30.sci (+7/-0) common/Themes/Ambiance/artwork/bubble_shadow@8.sci (+7/-0) |
To merge this branch: | bzr merge lp:~vthompson/music-app/theme-slider |
Related bugs: | |
Related blueprints: |
Music tasks for OTA-1
(High)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrew Hayzen | Approve | ||
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Review via email: mp+242161@code.launchpad.net |
Commit message
Theme the Slider component.
Description of the change
Theme the Slider component. This brings in the required Themes.Ambiance components, which are modified to have the Slider be UbuntuColors.blue. This comes from the current development SDK in vivid. As such, we'll want to keep this component in sync with any updates in the SDK.
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
- 746. By Victor Thompson
-
Add necessary artwork from the theme
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
PASSED: Continuous integration, rev:746
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'MusicNowPlaying.qml' | |||
2 | --- MusicNowPlaying.qml 2014-11-16 22:07:05 +0000 | |||
3 | +++ MusicNowPlaying.qml 2014-11-21 00:17:49 +0000 | |||
4 | @@ -24,6 +24,7 @@ | |||
5 | 24 | import Ubuntu.Thumbnailer 0.1 | 24 | import Ubuntu.Thumbnailer 0.1 |
6 | 25 | import "common" | 25 | import "common" |
7 | 26 | import "common/ListItemActions" | 26 | import "common/ListItemActions" |
8 | 27 | import "common/Themes/Ambiance" | ||
9 | 27 | import "meta-database.js" as Library | 28 | import "meta-database.js" as Library |
10 | 28 | import "playlists.js" as Playlists | 29 | import "playlists.js" as Playlists |
11 | 29 | 30 | ||
12 | @@ -289,6 +290,7 @@ | |||
13 | 289 | anchors.right: parent.right | 290 | anchors.right: parent.right |
14 | 290 | maximumValue: player.duration // load value at startup | 291 | maximumValue: player.duration // load value at startup |
15 | 291 | objectName: "progressSliderShape" | 292 | objectName: "progressSliderShape" |
16 | 293 | style: UbuntuBlueSliderStyle {} | ||
17 | 292 | value: player.position // load value at startup | 294 | value: player.position // load value at startup |
18 | 293 | 295 | ||
19 | 294 | function formatValue(v) { | 296 | function formatValue(v) { |
20 | @@ -308,10 +310,6 @@ | |||
21 | 308 | } | 310 | } |
22 | 309 | } | 311 | } |
23 | 310 | 312 | ||
24 | 311 | Component.onCompleted: { | ||
25 | 312 | Theme.palette.selected.foreground = UbuntuColors.blue | ||
26 | 313 | } | ||
27 | 314 | |||
28 | 315 | onPressedChanged: { | 313 | onPressedChanged: { |
29 | 316 | seeking = pressed | 314 | seeking = pressed |
30 | 317 | 315 | ||
31 | 318 | 316 | ||
32 | === added directory 'common/Themes' | |||
33 | === added directory 'common/Themes/Ambiance' | |||
34 | === added file 'common/Themes/Ambiance/BubbleShape.qml' | |||
35 | --- common/Themes/Ambiance/BubbleShape.qml 1970-01-01 00:00:00 +0000 | |||
36 | +++ common/Themes/Ambiance/BubbleShape.qml 2014-11-21 00:17:49 +0000 | |||
37 | @@ -0,0 +1,172 @@ | |||
38 | 1 | /* | ||
39 | 2 | * Copyright 2013-2014 Canonical Ltd. | ||
40 | 3 | * | ||
41 | 4 | * This program is free software; you can redistribute it and/or modify | ||
42 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
43 | 6 | * the Free Software Foundation; version 3. | ||
44 | 7 | * | ||
45 | 8 | * This program is distributed in the hope that it will be useful, | ||
46 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
47 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
48 | 11 | * GNU Lesser General Public License for more details. | ||
49 | 12 | * | ||
50 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
51 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
52 | 15 | */ | ||
53 | 16 | |||
54 | 17 | import QtQuick 2.0 | ||
55 | 18 | import Ubuntu.Components 1.1 | ||
56 | 19 | |||
57 | 20 | Item { | ||
58 | 21 | id: bubbleShape | ||
59 | 22 | |||
60 | 23 | /*! | ||
61 | 24 | Do not use an UbuntuShape but a Rectangle as the background of the BubbleShape. | ||
62 | 25 | */ | ||
63 | 26 | property bool square: false | ||
64 | 27 | |||
65 | 28 | /*! | ||
66 | 29 | The background color of the bubble. | ||
67 | 30 | */ | ||
68 | 31 | property color color: square ? Theme.palette.normal.background : Theme.palette.normal.overlay | ||
69 | 32 | |||
70 | 33 | property point target | ||
71 | 34 | property string direction: "down" | ||
72 | 35 | property bool clipContent: false | ||
73 | 36 | default property alias children: content.children | ||
74 | 37 | // FIXME: This should not be necessary. See | ||
75 | 38 | // https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1214978 | ||
76 | 39 | property alias arrowSource: arrow.source | ||
77 | 40 | |||
78 | 41 | implicitWidth: units.gu(10) | ||
79 | 42 | implicitHeight: units.gu(8) | ||
80 | 43 | |||
81 | 44 | signal showCompleted() | ||
82 | 45 | signal hideCompleted() | ||
83 | 46 | |||
84 | 47 | opacity: 0.0 | ||
85 | 48 | |||
86 | 49 | function show() { | ||
87 | 50 | hideAnimation.stop(); | ||
88 | 51 | showAnimation.start(); | ||
89 | 52 | } | ||
90 | 53 | |||
91 | 54 | function hide() { | ||
92 | 55 | showAnimation.stop(); | ||
93 | 56 | hideAnimation.start(); | ||
94 | 57 | } | ||
95 | 58 | |||
96 | 59 | ParallelAnimation { | ||
97 | 60 | id: showAnimation | ||
98 | 61 | |||
99 | 62 | NumberAnimation { | ||
100 | 63 | target: bubbleShape | ||
101 | 64 | property: "opacity" | ||
102 | 65 | from: 0.0 | ||
103 | 66 | to: 1.0 | ||
104 | 67 | duration: UbuntuAnimation.FastDuration | ||
105 | 68 | easing: UbuntuAnimation.StandardEasing | ||
106 | 69 | } | ||
107 | 70 | NumberAnimation { | ||
108 | 71 | target: scaleTransform | ||
109 | 72 | property: (direction === "up" || direction === "down") ? "yScale" : "xScale" | ||
110 | 73 | from: 0.91 | ||
111 | 74 | to: 1.0 | ||
112 | 75 | duration: UbuntuAnimation.FastDuration | ||
113 | 76 | easing: UbuntuAnimation.StandardEasing | ||
114 | 77 | } | ||
115 | 78 | onStopped: showCompleted() | ||
116 | 79 | } | ||
117 | 80 | |||
118 | 81 | NumberAnimation { | ||
119 | 82 | id: hideAnimation | ||
120 | 83 | target: bubbleShape | ||
121 | 84 | property: "opacity" | ||
122 | 85 | from: 1.0 | ||
123 | 86 | to: 0.0 | ||
124 | 87 | duration: UbuntuAnimation.FastDuration | ||
125 | 88 | easing: UbuntuAnimation.StandardEasing | ||
126 | 89 | onStopped: hideCompleted() | ||
127 | 90 | } | ||
128 | 91 | |||
129 | 92 | transform: Scale { | ||
130 | 93 | id: scaleTransform | ||
131 | 94 | origin.x: direction === "right" ? bubbleShape.width : | ||
132 | 95 | direction === "left" ? 0 : | ||
133 | 96 | bubbleShape.width/2.0 | ||
134 | 97 | origin.y: direction === "up" ? 0 : | ||
135 | 98 | direction === "down" ? bubbleShape.height : | ||
136 | 99 | bubbleShape.height/2.0 | ||
137 | 100 | } | ||
138 | 101 | |||
139 | 102 | BorderImage { | ||
140 | 103 | id: shadow | ||
141 | 104 | anchors.fill: parent | ||
142 | 105 | anchors.margins: square ? -units.gu(1) : -units.dp(2) | ||
143 | 106 | anchors.topMargin: square ? 0 : anchors.margins | ||
144 | 107 | source: !square ? "artwork/bubble_shadow.sci" : "artwork/header_overflow_dropshadow.sci" | ||
145 | 108 | opacity: 0.8 | ||
146 | 109 | } | ||
147 | 110 | |||
148 | 111 | UbuntuShape { | ||
149 | 112 | anchors.fill: parent | ||
150 | 113 | borderSource: "none" | ||
151 | 114 | color: Theme.palette.normal.overlay | ||
152 | 115 | image: bubbleShape.clipContent ? shapeSource : null | ||
153 | 116 | visible: !square | ||
154 | 117 | } | ||
155 | 118 | |||
156 | 119 | ShaderEffectSource { | ||
157 | 120 | id: shapeSource | ||
158 | 121 | visible: bubbleShape.clipContent | ||
159 | 122 | sourceItem: bubbleShape.clipContent ? content : null | ||
160 | 123 | hideSource: !square | ||
161 | 124 | // FIXME: visible: false prevents rendering so make it a nearly | ||
162 | 125 | // transparent 1x1 pixel instead | ||
163 | 126 | opacity: 0.01 | ||
164 | 127 | width: 1 | ||
165 | 128 | height: 1 | ||
166 | 129 | } | ||
167 | 130 | |||
168 | 131 | Item { | ||
169 | 132 | id: content | ||
170 | 133 | anchors.fill: parent | ||
171 | 134 | |||
172 | 135 | Rectangle { | ||
173 | 136 | id: colorRect | ||
174 | 137 | anchors.fill: parent | ||
175 | 138 | color: bubbleShape.color | ||
176 | 139 | visible: bubbleShape.clipContent | ||
177 | 140 | } | ||
178 | 141 | } | ||
179 | 142 | |||
180 | 143 | Item { | ||
181 | 144 | x: target.x | ||
182 | 145 | y: target.y | ||
183 | 146 | |||
184 | 147 | Image { | ||
185 | 148 | id: arrow | ||
186 | 149 | |||
187 | 150 | visible: !square && bubbleShape.direction != "none" | ||
188 | 151 | |||
189 | 152 | function directionToRotation(direction) { | ||
190 | 153 | switch (direction) { | ||
191 | 154 | case "up": | ||
192 | 155 | return 180; | ||
193 | 156 | case "left": | ||
194 | 157 | return 90; | ||
195 | 158 | case "right": | ||
196 | 159 | return -90; | ||
197 | 160 | default: // "down" or "none" | ||
198 | 161 | return 0; | ||
199 | 162 | } | ||
200 | 163 | } | ||
201 | 164 | |||
202 | 165 | x: -width / 2.0 | ||
203 | 166 | y: -height | ||
204 | 167 | transformOrigin: Item.Bottom | ||
205 | 168 | rotation: directionToRotation(bubbleShape.direction) | ||
206 | 169 | source: "artwork/bubble_arrow.png" | ||
207 | 170 | } | ||
208 | 171 | } | ||
209 | 172 | } | ||
210 | 0 | 173 | ||
211 | === added file 'common/Themes/Ambiance/PartialColorize.qml' | |||
212 | --- common/Themes/Ambiance/PartialColorize.qml 1970-01-01 00:00:00 +0000 | |||
213 | +++ common/Themes/Ambiance/PartialColorize.qml 2014-11-21 00:17:49 +0000 | |||
214 | @@ -0,0 +1,51 @@ | |||
215 | 1 | /* | ||
216 | 2 | * Copyright 2013 Canonical Ltd. | ||
217 | 3 | * | ||
218 | 4 | * This program is free software; you can redistribute it and/or modify | ||
219 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
220 | 6 | * the Free Software Foundation; version 3. | ||
221 | 7 | * | ||
222 | 8 | * This program is distributed in the hope that it will be useful, | ||
223 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
224 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
225 | 11 | * GNU Lesser General Public License for more details. | ||
226 | 12 | * | ||
227 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
228 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
229 | 15 | */ | ||
230 | 16 | |||
231 | 17 | import QtQuick 2.0 | ||
232 | 18 | |||
233 | 19 | ShaderEffect { | ||
234 | 20 | id: partialColorize | ||
235 | 21 | |||
236 | 22 | implicitWidth: source.implicitWidth | ||
237 | 23 | implicitHeight: source.implicitHeight | ||
238 | 24 | visible: source != null && source.visible | ||
239 | 25 | |||
240 | 26 | property Item sourceItem | ||
241 | 27 | property var source: ShaderEffectSource { | ||
242 | 28 | hideSource: true | ||
243 | 29 | sourceItem: partialColorize.sourceItem | ||
244 | 30 | visible: sourceItem != null | ||
245 | 31 | } | ||
246 | 32 | property color leftColor | ||
247 | 33 | property color rightColor | ||
248 | 34 | property real progress | ||
249 | 35 | property bool mirror: false | ||
250 | 36 | property string texCoord: mirror ? "1.0 - qt_TexCoord0.x" : "qt_TexCoord0.x" | ||
251 | 37 | |||
252 | 38 | fragmentShader: " | ||
253 | 39 | varying highp vec2 qt_TexCoord0; | ||
254 | 40 | uniform sampler2D source; | ||
255 | 41 | uniform lowp vec4 leftColor; | ||
256 | 42 | uniform lowp vec4 rightColor; | ||
257 | 43 | uniform lowp float progress; | ||
258 | 44 | uniform lowp float qt_Opacity; | ||
259 | 45 | |||
260 | 46 | void main() { | ||
261 | 47 | lowp vec4 sourceColor = texture2D(source, qt_TexCoord0); | ||
262 | 48 | lowp vec4 newColor = mix(leftColor, rightColor, step(progress, " + texCoord + ")); | ||
263 | 49 | gl_FragColor = newColor * sourceColor.a * qt_Opacity; | ||
264 | 50 | }" | ||
265 | 51 | } | ||
266 | 0 | 52 | ||
267 | === added file 'common/Themes/Ambiance/PartialColorizeUbuntuShape.qml' | |||
268 | --- common/Themes/Ambiance/PartialColorizeUbuntuShape.qml 1970-01-01 00:00:00 +0000 | |||
269 | +++ common/Themes/Ambiance/PartialColorizeUbuntuShape.qml 2014-11-21 00:17:49 +0000 | |||
270 | @@ -0,0 +1,36 @@ | |||
271 | 1 | /* | ||
272 | 2 | * Copyright 2013 Canonical Ltd. | ||
273 | 3 | * | ||
274 | 4 | * This program is free software; you can redistribute it and/or modify | ||
275 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
276 | 6 | * the Free Software Foundation; version 3. | ||
277 | 7 | * | ||
278 | 8 | * This program is distributed in the hope that it will be useful, | ||
279 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
280 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
281 | 11 | * GNU Lesser General Public License for more details. | ||
282 | 12 | * | ||
283 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
284 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
285 | 15 | */ | ||
286 | 16 | |||
287 | 17 | import QtQuick 2.0 | ||
288 | 18 | |||
289 | 19 | PartialColorize { | ||
290 | 20 | fragmentShader: " | ||
291 | 21 | varying highp vec2 qt_TexCoord0; | ||
292 | 22 | uniform sampler2D source; | ||
293 | 23 | uniform highp vec4 leftColor; | ||
294 | 24 | uniform highp vec4 rightColor; | ||
295 | 25 | uniform lowp float progress; | ||
296 | 26 | uniform lowp float qt_Opacity; | ||
297 | 27 | |||
298 | 28 | void main() { | ||
299 | 29 | lowp vec4 color = texture2D(source, qt_TexCoord0); | ||
300 | 30 | lowp vec4 newColor = mix(leftColor, rightColor, step(progress, " + texCoord + ")); | ||
301 | 31 | highp float opacity = (1.0 - color.r / max(1.0/256.0, color.a)); | ||
302 | 32 | lowp vec4 result = opacity * vec4(0.0, 0.0, 0.0, 1.0) + vec4(1.0 - opacity) * newColor; | ||
303 | 33 | gl_FragColor = vec4(result.rgb * result.a, result.a) * color.a * qt_Opacity; | ||
304 | 34 | } | ||
305 | 35 | " | ||
306 | 36 | } | ||
307 | 0 | 37 | ||
308 | === added file 'common/Themes/Ambiance/UbuntuBlueSliderStyle.qml' | |||
309 | --- common/Themes/Ambiance/UbuntuBlueSliderStyle.qml 1970-01-01 00:00:00 +0000 | |||
310 | +++ common/Themes/Ambiance/UbuntuBlueSliderStyle.qml 2014-11-21 00:17:49 +0000 | |||
311 | @@ -0,0 +1,126 @@ | |||
312 | 1 | /* | ||
313 | 2 | * Copyright 2013 Canonical Ltd. | ||
314 | 3 | * | ||
315 | 4 | * This program is free software; you can redistribute it and/or modify | ||
316 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
317 | 6 | * the Free Software Foundation; version 3. | ||
318 | 7 | * | ||
319 | 8 | * This program is distributed in the hope that it will be useful, | ||
320 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
321 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
322 | 11 | * GNU Lesser General Public License for more details. | ||
323 | 12 | * | ||
324 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
325 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
326 | 15 | */ | ||
327 | 16 | |||
328 | 17 | import QtQuick 2.0 | ||
329 | 18 | import Ubuntu.Components 1.1 | ||
330 | 19 | |||
331 | 20 | /* | ||
332 | 21 | The default slider style consists of a bar and a thumb shape. | ||
333 | 22 | |||
334 | 23 | This style is themed using the following properties: | ||
335 | 24 | - thumbSpacing: spacing between the thumb and the bar | ||
336 | 25 | */ | ||
337 | 26 | Item { | ||
338 | 27 | id: sliderStyle | ||
339 | 28 | |||
340 | 29 | property color foregroundColor: UbuntuColors.blue // CUSTOM | ||
341 | 30 | property color backgroundColor: Theme.palette.normal.base | ||
342 | 31 | |||
343 | 32 | property real thumbSpacing: units.gu(0) | ||
344 | 33 | property Item bar: background | ||
345 | 34 | property Item thumb: thumb | ||
346 | 35 | |||
347 | 36 | implicitWidth: units.gu(38) | ||
348 | 37 | implicitHeight: units.gu(5) | ||
349 | 38 | |||
350 | 39 | UbuntuShape { | ||
351 | 40 | id: background | ||
352 | 41 | anchors { | ||
353 | 42 | verticalCenter: parent.verticalCenter | ||
354 | 43 | right: parent.right | ||
355 | 44 | left: parent.left | ||
356 | 45 | } | ||
357 | 46 | height: units.dp(4) | ||
358 | 47 | |||
359 | 48 | color: "white" | ||
360 | 49 | } | ||
361 | 50 | |||
362 | 51 | PartialColorizeUbuntuShape { | ||
363 | 52 | anchors.fill: background | ||
364 | 53 | sourceItem: background | ||
365 | 54 | progress: thumb.x / thumb.barMinusThumbWidth | ||
366 | 55 | leftColor: foregroundColor | ||
367 | 56 | rightColor: backgroundColor | ||
368 | 57 | mirror: Qt.application.layoutDirection == Qt.RightToLeft | ||
369 | 58 | } | ||
370 | 59 | |||
371 | 60 | UbuntuShape { | ||
372 | 61 | id: thumb | ||
373 | 62 | |||
374 | 63 | anchors { | ||
375 | 64 | verticalCenter: parent.verticalCenter | ||
376 | 65 | topMargin: thumbSpacing | ||
377 | 66 | bottomMargin: thumbSpacing | ||
378 | 67 | } | ||
379 | 68 | |||
380 | 69 | property real barMinusThumbWidth: background.width - (thumb.width + 2.0*thumbSpacing) | ||
381 | 70 | property real position: thumbSpacing + SliderUtils.normalizedValue(styledItem) * barMinusThumbWidth | ||
382 | 71 | property bool pressed: SliderUtils.isPressed(styledItem) | ||
383 | 72 | property bool positionReached: x == position | ||
384 | 73 | x: position | ||
385 | 74 | |||
386 | 75 | /* Enable the animation on x when pressing the slider. | ||
387 | 76 | Disable it when x has reached the target position. | ||
388 | 77 | */ | ||
389 | 78 | onPressedChanged: if (pressed) xBehavior.enabled = true; | ||
390 | 79 | onPositionReachedChanged: if (positionReached) xBehavior.enabled = false; | ||
391 | 80 | |||
392 | 81 | Behavior on x { | ||
393 | 82 | id: xBehavior | ||
394 | 83 | SmoothedAnimation { | ||
395 | 84 | duration: UbuntuAnimation.FastDuration | ||
396 | 85 | } | ||
397 | 86 | } | ||
398 | 87 | width: units.gu(2) | ||
399 | 88 | height: units.gu(2) | ||
400 | 89 | opacity: 0.97 | ||
401 | 90 | color: Theme.palette.normal.overlay | ||
402 | 91 | } | ||
403 | 92 | |||
404 | 93 | BubbleShape { | ||
405 | 94 | id: bubbleShape | ||
406 | 95 | |||
407 | 96 | width: units.gu(8) | ||
408 | 97 | height: units.gu(6) | ||
409 | 98 | |||
410 | 99 | // FIXME: very temporary implementation | ||
411 | 100 | property real minX: 0.0 | ||
412 | 101 | property real maxX: background.width - width | ||
413 | 102 | property real pointerSize: units.dp(6) | ||
414 | 103 | property real targetMargin: units.gu(1) | ||
415 | 104 | property point globalTarget: Qt.point(thumb.x + thumb.width / 2.0, thumb.y - targetMargin) | ||
416 | 105 | |||
417 | 106 | x: MathUtils.clamp(globalTarget.x - width / 2.0, minX, maxX) | ||
418 | 107 | y: globalTarget.y - height - pointerSize | ||
419 | 108 | target: Qt.point(globalTarget.x - x, globalTarget.y - y) | ||
420 | 109 | |||
421 | 110 | property bool pressed: SliderUtils.isPressed(styledItem) | ||
422 | 111 | property bool shouldShow: pressed && label.text != "" | ||
423 | 112 | onShouldShowChanged: if (shouldShow) { | ||
424 | 113 | show(); | ||
425 | 114 | } else { | ||
426 | 115 | hide(); | ||
427 | 116 | } | ||
428 | 117 | |||
429 | 118 | Label { | ||
430 | 119 | id: label | ||
431 | 120 | anchors.centerIn: parent | ||
432 | 121 | text: styledItem.formatValue(SliderUtils.liveValue(styledItem)) | ||
433 | 122 | fontSize: "large" | ||
434 | 123 | color: Theme.palette.normal.overlayText | ||
435 | 124 | } | ||
436 | 125 | } | ||
437 | 126 | } | ||
438 | 0 | 127 | ||
439 | === added directory 'common/Themes/Ambiance/artwork' | |||
440 | === added file 'common/Themes/Ambiance/artwork/bubble_arrow@20.png' | |||
441 | 1 | Binary files common/Themes/Ambiance/artwork/bubble_arrow@20.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_arrow@20.png 2014-11-21 00:17:49 +0000 differ | 128 | Binary files common/Themes/Ambiance/artwork/bubble_arrow@20.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_arrow@20.png 2014-11-21 00:17:49 +0000 differ |
442 | === added file 'common/Themes/Ambiance/artwork/bubble_arrow@30.png' | |||
443 | 2 | Binary files common/Themes/Ambiance/artwork/bubble_arrow@30.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_arrow@30.png 2014-11-21 00:17:49 +0000 differ | 129 | Binary files common/Themes/Ambiance/artwork/bubble_arrow@30.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_arrow@30.png 2014-11-21 00:17:49 +0000 differ |
444 | === added file 'common/Themes/Ambiance/artwork/bubble_arrow@8.png' | |||
445 | 3 | Binary files common/Themes/Ambiance/artwork/bubble_arrow@8.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_arrow@8.png 2014-11-21 00:17:49 +0000 differ | 130 | Binary files common/Themes/Ambiance/artwork/bubble_arrow@8.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_arrow@8.png 2014-11-21 00:17:49 +0000 differ |
446 | === added file 'common/Themes/Ambiance/artwork/bubble_shadow@20.png' | |||
447 | 4 | Binary files common/Themes/Ambiance/artwork/bubble_shadow@20.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_shadow@20.png 2014-11-21 00:17:49 +0000 differ | 131 | Binary files common/Themes/Ambiance/artwork/bubble_shadow@20.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_shadow@20.png 2014-11-21 00:17:49 +0000 differ |
448 | === added file 'common/Themes/Ambiance/artwork/bubble_shadow@20.sci' | |||
449 | --- common/Themes/Ambiance/artwork/bubble_shadow@20.sci 1970-01-01 00:00:00 +0000 | |||
450 | +++ common/Themes/Ambiance/artwork/bubble_shadow@20.sci 2014-11-21 00:17:49 +0000 | |||
451 | @@ -0,0 +1,7 @@ | |||
452 | 1 | border.top: 21 | ||
453 | 2 | border.bottom: 26 | ||
454 | 3 | border.left: 27 | ||
455 | 4 | border.right: 27 | ||
456 | 5 | horizontalTileMode: BorderImage.Stretch | ||
457 | 6 | verticalTileMode: BorderImage.Stretch | ||
458 | 7 | source: bubble_shadow@20.png | ||
459 | 0 | 8 | ||
460 | === added file 'common/Themes/Ambiance/artwork/bubble_shadow@30.png' | |||
461 | 1 | Binary files common/Themes/Ambiance/artwork/bubble_shadow@30.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_shadow@30.png 2014-11-21 00:17:49 +0000 differ | 9 | Binary files common/Themes/Ambiance/artwork/bubble_shadow@30.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_shadow@30.png 2014-11-21 00:17:49 +0000 differ |
462 | === added file 'common/Themes/Ambiance/artwork/bubble_shadow@30.sci' | |||
463 | --- common/Themes/Ambiance/artwork/bubble_shadow@30.sci 1970-01-01 00:00:00 +0000 | |||
464 | +++ common/Themes/Ambiance/artwork/bubble_shadow@30.sci 2014-11-21 00:17:49 +0000 | |||
465 | @@ -0,0 +1,7 @@ | |||
466 | 1 | border.top: 31 | ||
467 | 2 | border.bottom: 37 | ||
468 | 3 | border.left: 38 | ||
469 | 4 | border.right: 38 | ||
470 | 5 | horizontalTileMode: BorderImage.Stretch | ||
471 | 6 | verticalTileMode: BorderImage.Stretch | ||
472 | 7 | source: bubble_shadow@30.png | ||
473 | 0 | 8 | ||
474 | === added file 'common/Themes/Ambiance/artwork/bubble_shadow@8.png' | |||
475 | 1 | Binary files common/Themes/Ambiance/artwork/bubble_shadow@8.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_shadow@8.png 2014-11-21 00:17:49 +0000 differ | 9 | Binary files common/Themes/Ambiance/artwork/bubble_shadow@8.png 1970-01-01 00:00:00 +0000 and common/Themes/Ambiance/artwork/bubble_shadow@8.png 2014-11-21 00:17:49 +0000 differ |
476 | === added file 'common/Themes/Ambiance/artwork/bubble_shadow@8.sci' | |||
477 | --- common/Themes/Ambiance/artwork/bubble_shadow@8.sci 1970-01-01 00:00:00 +0000 | |||
478 | +++ common/Themes/Ambiance/artwork/bubble_shadow@8.sci 2014-11-21 00:17:49 +0000 | |||
479 | @@ -0,0 +1,7 @@ | |||
480 | 1 | border.top: 10 | ||
481 | 2 | border.bottom: 11 | ||
482 | 3 | border.left: 12 | ||
483 | 4 | border.right: 11 | ||
484 | 5 | horizontalTileMode: BorderImage.Stretch | ||
485 | 6 | verticalTileMode: BorderImage.Stretch | ||
486 | 7 | source: bubble_shadow@8.png |
PASSED: Continuous integration, rev:745 91.189. 93.70:8080/ job/music- app-ci/ 1158/ 91.189. 93.70:8080/ job/generic- mediumtests- vivid/282 91.189. 93.70:8080/ job/generic- mediumtests- vivid/282/ artifact/ work/output/ *zip*/output. zip 91.189. 93.70:8080/ job/music- app-vivid- amd64-ci/ 10
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/music- app-ci/ 1158/rebuild
http://