Merge lp:~cimi/unity8/carousel-music-video into lp:unity8
- carousel-music-video
- Merge into trunk
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Michał Sawicz | ||||
Proposed branch: | lp:~cimi/unity8/carousel-music-video | ||||
Merge into: | lp:unity8 | ||||
Prerequisite: | lp:~unity-team/unity8/carousel-loader | ||||
Diff against target: |
216 lines (+127/-27) 4 files modified
Dash/Music/CarouselDelegateMusic.qml (+59/-13) Dash/Video/CarouselDelegateVideo.qml (+64/-10) Dash/Video/VideoCarousel.qml (+2/-2) Dash/Video/VideoTileStyle.qml (+2/-2) |
||||
To merge this branch: | bzr merge lp:~cimi/unity8/carousel-music-video | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Sawicz | Disapprove | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Michael Zanetti (community) | Needs Fixing | ||
Review via email: mp+192118@code.launchpad.net |
This proposal supersedes a proposal from 2013-10-15.
Commit message
Added music and video carousel using new assets
Description of the change
Added music and video carousel using new assets (music carousel asset will need future update).
This branch will conflict with https:/
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal | # |
What is " // XXX test on Nexus 10"?
What's the status of the incorrect shape of the overlay?
34 + borderSource: "cimi wants no borders"
Erm... Filed a bug about this?
49 + duration: 250
50 + easing.type: Easing.InOutQuad
We've got UbuntuAnimation for standard durations. Also, opacity animations are supposed to be Linear.
67 + visible: true
Is default.
Andrea Cimitan (cimi) wrote : Posted in a previous version of this proposal | # |
> What is " // XXX test on Nexus 10"?
>
> What's the status of the incorrect shape of the overlay?
>
> 34 + borderSource: "cimi wants no borders"
> Erm... Filed a bug about this?
>
bordersource needs a not-empty and incorrect value to disable borders...
> 49 + duration: 250
> 50 + easing.type: Easing.InOutQuad
>
> We've got UbuntuAnimation for standard durations. Also, opacity animations are
> supposed to be Linear.
>
> 67 + visible: true
>
> Is default.
will fix those tomorrow morning
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:466
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:466
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 467. By Andrea Cimitan
-
Update asset
- 468. By Andrea Cimitan
-
Update comments
- 469. By Andrea Cimitan
-
Changed url :)
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:469
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michał Sawicz (saviq) wrote : | # |
Please remove the XXX comments, and just test under different grid units.
It's broken in different-
Should be left-aligned in videos.
Font looks too big in videos - is there support for the subtitle?
Still isn't aligned well in music :/ - and font looks too big.
Two-line title + subtitle in music overflows the overlay.
Michał Sawicz (saviq) wrote : | # |
Overlay in music should be 7gu-high, in video 6gu-high (just over video - disregarding the mount).
- 470. By Andrea Cimitan
-
Extra fixes and refinements for carousel music and video (align video grid tiles too)
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:470
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 471. By Andrea Cimitan
-
Updated overlay asset
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:471
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:471
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michael Zanetti (mzanetti) wrote : | # |
seems lots of new logic to me. Can we test this?
Andrea Cimitan (cimi) wrote : | # |
> seems lots of new logic to me. Can we test this?
manual tests (i.e. eye...) can't really test visuals
Michael Zanetti (mzanetti) wrote : | # |
Well, we can do tests which check if the Loader creates a carousel or a grid, depending on the amount of items, no?
Andrea Cimitan (cimi) wrote : | # |
> Well, we can do tests which check if the Loader creates a carousel or a grid,
> depending on the amount of items, no?
Not relevant to this branch, though
- 472. By Andrea Cimitan
-
Delete tags
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:472
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Andrea Cimitan (cimi) wrote : | # |
> Please remove the XXX comments, and just test under different grid units.
>
> It's broken in different-
> on desktop to see.
>
> Should be left-aligned in videos.
>
> Font looks too big in videos - is there support for the subtitle?
>
> Still isn't aligned well in music :/ - and font looks too big.
>
> Two-line title + subtitle in music overflows the overlay.
Everything is fixed apart the fullscreen mode... will have a look
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:472
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michał Sawicz (saviq) wrote : | # |
This is obsolete with new scopes.
Unmerged revisions
- 472. By Andrea Cimitan
-
Delete tags
- 471. By Andrea Cimitan
-
Updated overlay asset
- 470. By Andrea Cimitan
-
Extra fixes and refinements for carousel music and video (align video grid tiles too)
- 469. By Andrea Cimitan
-
Changed url :)
- 468. By Andrea Cimitan
-
Update comments
- 467. By Andrea Cimitan
-
Update asset
- 466. By Andrea Cimitan
- 465. By Andrea Cimitan
-
use ubuntu animation
- 464. By Andrea Cimitan
-
Added carousel music and video renderers
Preview Diff
1 | === modified file 'Dash/Music/CarouselDelegateMusic.qml' |
2 | --- Dash/Music/CarouselDelegateMusic.qml 2013-07-09 11:04:25 +0000 |
3 | +++ Dash/Music/CarouselDelegateMusic.qml 2013-10-25 13:50:38 +0000 |
4 | @@ -21,22 +21,68 @@ |
5 | BaseCarouselDelegate { |
6 | id: item |
7 | |
8 | - UbuntuShape { |
9 | + Image { |
10 | anchors.fill: parent |
11 | - radius: "medium" |
12 | - borderSource: "" |
13 | - image: Image { |
14 | - asynchronous: true |
15 | - sourceSize { width: item.width; height: item.height } |
16 | - source: model ? model.icon : "" |
17 | + source: "graphics/music_lens_carousel_itemholder.png" |
18 | + |
19 | + UbuntuShape { |
20 | + anchors.fill: parent |
21 | + radius: "medium" |
22 | + borderSource: "invalid url" // need an invalid / notNull url |
23 | + image: Image { |
24 | + asynchronous: true |
25 | + sourceSize { width: item.width; height: item.height } |
26 | + source: model ? model.icon : "" |
27 | + } |
28 | + } |
29 | + |
30 | + Loader { |
31 | + id: loaderFrame |
32 | + anchors.fill: parent |
33 | + opacity: item.explicitlyScaled ? 1.0 : 0 |
34 | + |
35 | + Behavior on opacity { |
36 | + UbuntuNumberAnimation { |
37 | + easing.type: Easing.Linear |
38 | + } |
39 | + } |
40 | + |
41 | + sourceComponent: opacity > 0 ? componentFrame : undefined |
42 | } |
43 | } |
44 | |
45 | - BorderImage { |
46 | - anchors.centerIn: parent |
47 | - opacity: 0.6 |
48 | - source: "../../Components/graphics/non-selected.sci" |
49 | - width: parent.width + units.gu(1.5) |
50 | - height: parent.height + units.gu(1.5) |
51 | + Component { |
52 | + id: componentFrame |
53 | + Image { |
54 | + source: "graphics/music_lens_carousel_text_overlay.png" |
55 | + |
56 | + Column { |
57 | + anchors { |
58 | + left: parent.left |
59 | + right: parent.right |
60 | + bottom: parent.bottom |
61 | + margins: units.gu(1) |
62 | + bottomMargin: units.gu(2) |
63 | + } |
64 | + |
65 | + Label { |
66 | + text: model ? model.comment : "" |
67 | + fontSize: "x-small" |
68 | + font.weight: Font.Bold |
69 | + elide: Text.ElideRight |
70 | + wrapMode: Text.Wrap |
71 | + maximumLineCount: 2 |
72 | + width: parent.width |
73 | + } |
74 | + Label { |
75 | + text: model ? model.title : "" |
76 | + fontSize: "xx-small" |
77 | + elide: Text.ElideRight |
78 | + wrapMode: Text.Wrap |
79 | + maximumLineCount: 1 |
80 | + width: parent.width |
81 | + } |
82 | + } |
83 | + } |
84 | } |
85 | } |
86 | |
87 | === added directory 'Dash/Music/graphics' |
88 | === added file 'Dash/Music/graphics/music_lens_carousel_itemholder@27.png' |
89 | Binary files Dash/Music/graphics/music_lens_carousel_itemholder@27.png 1970-01-01 00:00:00 +0000 and Dash/Music/graphics/music_lens_carousel_itemholder@27.png 2013-10-25 13:50:38 +0000 differ |
90 | === added file 'Dash/Music/graphics/music_lens_carousel_text_overlay@27.png' |
91 | Binary files Dash/Music/graphics/music_lens_carousel_text_overlay@27.png 1970-01-01 00:00:00 +0000 and Dash/Music/graphics/music_lens_carousel_text_overlay@27.png 2013-10-25 13:50:38 +0000 differ |
92 | === modified file 'Dash/Video/CarouselDelegateVideo.qml' |
93 | --- Dash/Video/CarouselDelegateVideo.qml 2013-07-09 09:06:29 +0000 |
94 | +++ Dash/Video/CarouselDelegateVideo.qml 2013-10-25 13:50:38 +0000 |
95 | @@ -21,22 +21,76 @@ |
96 | BaseCarouselDelegate { |
97 | id: item |
98 | |
99 | - UbuntuShape { |
100 | + Image { |
101 | anchors.fill: parent |
102 | - radius: "medium" |
103 | - borderSource: "" |
104 | - image: Image { |
105 | + source: "graphics/movie_icon_holder_carousel.png" |
106 | + |
107 | + Image { |
108 | + id: thumbnail |
109 | asynchronous: true |
110 | + anchors { |
111 | + fill: parent; |
112 | + leftMargin: units.dp(2) |
113 | + rightMargin: units.dp(2) |
114 | + topMargin: units.gu(2) + units.dp(2) |
115 | + bottomMargin: units.gu(2.5) - units.dp(1) |
116 | + } |
117 | sourceSize { width: item.width; height: item.height } |
118 | source: model ? model.icon : "" |
119 | + fillMode: Image.PreserveAspectCrop |
120 | + } |
121 | + |
122 | + Loader { |
123 | + id: loaderFrame |
124 | + anchors { |
125 | + left: thumbnail.left |
126 | + right: thumbnail.right |
127 | + bottom: thumbnail.bottom |
128 | + } |
129 | + height: units.gu(6) |
130 | + opacity: item.explicitlyScaled ? 1.0 : 0 |
131 | + |
132 | + Behavior on opacity { |
133 | + UbuntuNumberAnimation { |
134 | + easing.type: Easing.Linear |
135 | + } |
136 | + } |
137 | + |
138 | + sourceComponent: opacity > 0 ? componentFrame : undefined |
139 | } |
140 | } |
141 | |
142 | - BorderImage { |
143 | - anchors.centerIn: parent |
144 | - opacity: 0.6 |
145 | - source: "../../Components/graphics/non-selected.sci" |
146 | - width: parent.width + units.gu(1.5) |
147 | - height: parent.height + units.gu(1.5) |
148 | + Component { |
149 | + id: componentFrame |
150 | + Rectangle { |
151 | + color: Qt.rgba(0, 0, 0, 0.8) |
152 | + |
153 | + Column { |
154 | + anchors { |
155 | + left: parent.left |
156 | + right: parent.right |
157 | + top: parent.top |
158 | + margins: units.gu(1) |
159 | + } |
160 | + |
161 | + Label { |
162 | + width: parent.width |
163 | + text: model ? model.title : "" |
164 | + fontSize: "x-small" |
165 | + font.weight: Font.Bold |
166 | + elide: Text.ElideRight |
167 | + wrapMode: Text.Wrap |
168 | + maximumLineCount: 2 |
169 | + } |
170 | + Label { |
171 | + width: parent.width |
172 | + text: model ? model.comment : "" |
173 | + fontSize: "xx-small" |
174 | + elide: Text.ElideRight |
175 | + wrapMode: Text.Wrap |
176 | + maximumLineCount: 1 |
177 | + } |
178 | + } |
179 | + } |
180 | } |
181 | } |
182 | |
183 | === modified file 'Dash/Video/VideoCarousel.qml' |
184 | --- Dash/Video/VideoCarousel.qml 2013-06-05 22:03:08 +0000 |
185 | +++ Dash/Video/VideoCarousel.qml 2013-10-25 13:50:38 +0000 |
186 | @@ -19,10 +19,10 @@ |
187 | |
188 | Carousel { |
189 | id: videosCarousel |
190 | - tileAspectRatio: 198 / 288 |
191 | + tileAspectRatio: 1 |
192 | minimumTileWidth: units.gu(13) |
193 | itemComponent: carouselDelegateVideo |
194 | - selectedItemScaleFactor: 1.14 |
195 | + selectedItemScaleFactor: 1.2 |
196 | cacheBuffer: 1404 // 18px * 13gu * 6 |
197 | height: implicitHeight + units.gu(6) |
198 | |
199 | |
200 | === modified file 'Dash/Video/VideoTileStyle.qml' |
201 | --- Dash/Video/VideoTileStyle.qml 2013-10-14 10:23:18 +0000 |
202 | +++ Dash/Video/VideoTileStyle.qml 2013-10-25 13:50:38 +0000 |
203 | @@ -37,8 +37,8 @@ |
204 | objectName: "image" |
205 | anchors { |
206 | fill: parent; |
207 | - topMargin: units.gu(2); |
208 | - bottomMargin: units.gu(2) |
209 | + topMargin: units.gu(2) + units.dp(1) |
210 | + bottomMargin: units.gu(2) + units.dp(2) |
211 | } |
212 | sourceSize { width: icon.width; height: icon.height } |
213 | asynchronous: true |
214 | |
215 | === added file 'Dash/Video/graphics/movie_icon_holder_carousel@27.png' |
216 | Binary files Dash/Video/graphics/movie_icon_holder_carousel@27.png 1970-01-01 00:00:00 +0000 and Dash/Video/graphics/movie_icon_holder_carousel@27.png 2013-10-25 13:50:38 +0000 differ |
FAILED: Continuous integration, rev:464 jenkins. qa.ubuntu. com/job/ unity8- ci/1416/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- saucy/5025 jenkins. qa.ubuntu. com/job/ generic- mediumtests- touch/2954 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- saucy/2283 jenkins. qa.ubuntu. com/job/ unity8- saucy-amd64- ci/439 jenkins. qa.ubuntu. com/job/ unity8- saucy-armhf- ci/1416 jenkins. qa.ubuntu. com/job/ unity8- saucy-armhf- ci/1416/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity8- saucy-i386- ci/1415 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-saucy/ 1194 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-amd64/ 900 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-amd64/ 900/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-armhf/ 2956 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-armhf/ 2956/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- maguro/ 2462 jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- mako/2505
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
UNSTABLE: http://
Click here to trigger a rebuild: 10.97.0. 26:8080/ job/unity8- ci/1416/ rebuild
http://