Merge lp:~cimi/unity8/carousel-shadow into lp:unity8
- carousel-shadow
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Albert Astals Cid |
Approved revision: | 890 |
Merged at revision: | 902 |
Proposed branch: | lp:~cimi/unity8/carousel-shadow |
Merge into: | lp:unity8 |
Prerequisite: | lp:~aacid/unity8/dynamic_specialized_cards |
Diff against target: |
145 lines (+25/-1) 8 files modified
plugins/Dash/CardCreator.js (+2/-0) qml/Dash/CardCarousel.qml (+10/-1) qml/Dash/graphics/carousel_dropshadow@27.sci (+5/-0) tests/plugins/Dash/cardcreator/1.res (+2/-0) tests/plugins/Dash/cardcreator/2.res (+1/-0) tests/plugins/Dash/cardcreator/3.res (+2/-0) tests/plugins/Dash/cardcreator/4.res (+1/-0) tests/plugins/Dash/cardcreator/5.res (+2/-0) |
To merge this branch: | bzr merge lp:~cimi/unity8/carousel-shadow |
Related bugs: | |
Related blueprints: |
Dash component for Unity8, 14.10 tasks
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Albert Astals Cid (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Andrea Cimitan (community) | Needs Fixing | ||
Review via email: mp+219233@code.launchpad.net |
Commit message
Adds shadow for the carousel
Description of the change
* Are there any related MPs required for this MP to build/function as expected? Please list.
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
Yes
Omer Akram (om26er) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:885
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Andrea Cimitan (cimi) wrote : | # |
> 26 + * Copyright (C) 2013 Canonical, Ltd.
>
> 2014 ?
That file shouldn't be there, it's victim of combined merges, I'll remove it tomorrow.
- 887. By Andrea Cimitan
-
Add newline in js
Albert Astals Cid (aacid) wrote : | # |
Why are you setting the borderSouce for all creations now?
Have you run the tests?
Albert Astals Cid (aacid) wrote : | # |
I mean we are setting "radius_idle.sci" when previously we didn't set anything, no?
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:887
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 888. By Andrea Cimitan
-
Add shadow asset and remove bordersource default value - WIP REQUIRES OPTIMIZATION
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:888
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : | # |
make xvfbtestCardCreator
Albert Astals Cid (aacid) wrote : | # |
Are we sure this border image with shadow is always going to be carousel only? Maybe it makes more sense to be inside the card than in the carousel?
Andrea Cimitan (cimi) wrote : | # |
> Are we sure this border image with shadow is always going to be carou
sel only?
> Maybe it makes more sense to be inside the card than in the carousel?
For now it is, so let's not add extra code in the creation!
- 889. By Andrea Cimitan
-
Added semicolon
- 890. By Andrea Cimitan
-
Fix tests
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:890
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes, looks good
* Did CI run pass? If not, please explain why.
qmluitests are still on trusty
Preview Diff
1 | === modified file 'plugins/Dash/CardCreator.js' | |||
2 | --- plugins/Dash/CardCreator.js 2014-05-07 15:30:16 +0000 | |||
3 | +++ plugins/Dash/CardCreator.js 2014-05-15 09:39:51 +0000 | |||
4 | @@ -73,6 +73,7 @@ | |||
5 | 73 | Component.onCompleted: updateWidthHeightBindings(); \n\ | 73 | Component.onCompleted: updateWidthHeightBindings(); \n\ |
6 | 74 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); \n\ | 74 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); \n\ |
7 | 75 | visible: image.status == Image.Ready; \n\ | 75 | visible: image.status == Image.Ready; \n\ |
8 | 76 | borderSource: artShapeBorderSource; \n\ | ||
9 | 76 | function updateWidthHeightBindings() { \n\ | 77 | function updateWidthHeightBindings() { \n\ |
10 | 77 | if (aspectSmallerThanImageAspect) { \n\ | 78 | if (aspectSmallerThanImageAspect) { \n\ |
11 | 78 | width = Qt.binding(function() { return !visible ? 0 : image.width }); \n\ | 79 | width = Qt.binding(function() { return !visible ? 0 : image.width }); \n\ |
12 | @@ -280,6 +281,7 @@ | |||
13 | 280 | property var template; \n\ | 281 | property var template; \n\ |
14 | 281 | property var components; \n\ | 282 | property var components; \n\ |
15 | 282 | property var cardData; \n\ | 283 | property var cardData; \n\ |
16 | 284 | property var artShapeBorderSource; \n\ | ||
17 | 283 | property real fontScale: 1.0; \n\ | 285 | property real fontScale: 1.0; \n\ |
18 | 284 | property int headerAlignment: Text.AlignLeft; \n\ | 286 | property int headerAlignment: Text.AlignLeft; \n\ |
19 | 285 | property int fixedHeaderHeight: -1; \n\ | 287 | property int fixedHeaderHeight: -1; \n\ |
20 | 286 | 288 | ||
21 | === modified file 'qml/Dash/CardCarousel.qml' | |||
22 | --- qml/Dash/CardCarousel.qml 2014-05-07 13:55:44 +0000 | |||
23 | +++ qml/Dash/CardCarousel.qml 2014-05-15 09:39:51 +0000 | |||
24 | @@ -18,7 +18,6 @@ | |||
25 | 18 | import Ubuntu.Components 0.1 | 18 | import Ubuntu.Components 0.1 |
26 | 19 | import "../Components" | 19 | import "../Components" |
27 | 20 | 20 | ||
28 | 21 | |||
29 | 22 | DashRenderer { | 21 | DashRenderer { |
30 | 23 | id: cardCarousel | 22 | id: cardCarousel |
31 | 24 | 23 | ||
32 | @@ -66,6 +65,16 @@ | |||
33 | 66 | item.components = Qt.binding(function() { return cardTool.components; }); | 65 | item.components = Qt.binding(function() { return cardTool.components; }); |
34 | 67 | item.fontScale = Qt.binding(function() { return carousel.fontScale; }); | 66 | item.fontScale = Qt.binding(function() { return carousel.fontScale; }); |
35 | 68 | item.showHeader = Qt.binding(function() { return loader.explicitlyScaled; }); | 67 | item.showHeader = Qt.binding(function() { return loader.explicitlyScaled; }); |
36 | 68 | item.artShapeBorderSource = "none"; | ||
37 | 69 | } | ||
38 | 70 | |||
39 | 71 | BorderImage { | ||
40 | 72 | anchors { | ||
41 | 73 | fill: parent | ||
42 | 74 | margins: -units.gu(1) | ||
43 | 75 | } | ||
44 | 76 | z: -1 | ||
45 | 77 | source: "graphics/carousel_dropshadow.sci" | ||
46 | 69 | } | 78 | } |
47 | 70 | } | 79 | } |
48 | 71 | } | 80 | } |
49 | 72 | 81 | ||
50 | === added file 'qml/Dash/graphics/carousel_dropshadow@27.png' | |||
51 | 73 | Binary files qml/Dash/graphics/carousel_dropshadow@27.png 1970-01-01 00:00:00 +0000 and qml/Dash/graphics/carousel_dropshadow@27.png 2014-05-15 09:39:51 +0000 differ | 82 | Binary files qml/Dash/graphics/carousel_dropshadow@27.png 1970-01-01 00:00:00 +0000 and qml/Dash/graphics/carousel_dropshadow@27.png 2014-05-15 09:39:51 +0000 differ |
52 | === added file 'qml/Dash/graphics/carousel_dropshadow@27.sci' | |||
53 | --- qml/Dash/graphics/carousel_dropshadow@27.sci 1970-01-01 00:00:00 +0000 | |||
54 | +++ qml/Dash/graphics/carousel_dropshadow@27.sci 2014-05-15 09:39:51 +0000 | |||
55 | @@ -0,0 +1,5 @@ | |||
56 | 1 | border.left: 108 | ||
57 | 2 | border.top: 108 | ||
58 | 3 | border.bottom: 108 | ||
59 | 4 | border.right: 108 | ||
60 | 5 | source: carousel_dropshadow@27.png | ||
61 | 0 | \ No newline at end of file | 6 | \ No newline at end of file |
62 | 1 | 7 | ||
63 | === modified file 'tests/plugins/Dash/cardcreator/1.res' | |||
64 | --- tests/plugins/Dash/cardcreator/1.res 2014-05-07 13:31:55 +0000 | |||
65 | +++ tests/plugins/Dash/cardcreator/1.res 2014-05-15 09:39:51 +0000 | |||
66 | @@ -3,6 +3,7 @@ | |||
67 | 3 | property var template; | 3 | property var template; |
68 | 4 | property var components; | 4 | property var components; |
69 | 5 | property var cardData; | 5 | property var cardData; |
70 | 6 | property var artShapeBorderSource; | ||
71 | 6 | property real fontScale: 1.0; | 7 | property real fontScale: 1.0; |
72 | 7 | property int headerAlignment: Text.AlignLeft; | 8 | property int headerAlignment: Text.AlignLeft; |
73 | 8 | property int fixedHeaderHeight: -1; | 9 | property int fixedHeaderHeight: -1; |
74 | @@ -32,6 +33,7 @@ | |||
75 | 32 | Component.onCompleted: updateWidthHeightBindings(); | 33 | Component.onCompleted: updateWidthHeightBindings(); |
76 | 33 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); | 34 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); |
77 | 34 | visible: image.status == Image.Ready; | 35 | visible: image.status == Image.Ready; |
78 | 36 | borderSource: artShapeBorderSource; | ||
79 | 35 | function updateWidthHeightBindings() { | 37 | function updateWidthHeightBindings() { |
80 | 36 | if (aspectSmallerThanImageAspect) { | 38 | if (aspectSmallerThanImageAspect) { |
81 | 37 | width = Qt.binding(function() { return !visible ? 0 : image.width }); | 39 | width = Qt.binding(function() { return !visible ? 0 : image.width }); |
82 | 38 | 40 | ||
83 | === modified file 'tests/plugins/Dash/cardcreator/2.res' | |||
84 | --- tests/plugins/Dash/cardcreator/2.res 2014-05-07 13:31:55 +0000 | |||
85 | +++ tests/plugins/Dash/cardcreator/2.res 2014-05-15 09:39:51 +0000 | |||
86 | @@ -3,6 +3,7 @@ | |||
87 | 3 | property var template; | 3 | property var template; |
88 | 4 | property var components; | 4 | property var components; |
89 | 5 | property var cardData; | 5 | property var cardData; |
90 | 6 | property var artShapeBorderSource; | ||
91 | 6 | property real fontScale: 1.0; | 7 | property real fontScale: 1.0; |
92 | 7 | property int headerAlignment: Text.AlignLeft; | 8 | property int headerAlignment: Text.AlignLeft; |
93 | 8 | property int fixedHeaderHeight: -1; | 9 | property int fixedHeaderHeight: -1; |
94 | 9 | 10 | ||
95 | === modified file 'tests/plugins/Dash/cardcreator/3.res' | |||
96 | --- tests/plugins/Dash/cardcreator/3.res 2014-05-07 15:30:16 +0000 | |||
97 | +++ tests/plugins/Dash/cardcreator/3.res 2014-05-15 09:39:51 +0000 | |||
98 | @@ -3,6 +3,7 @@ | |||
99 | 3 | property var template; | 3 | property var template; |
100 | 4 | property var components; | 4 | property var components; |
101 | 5 | property var cardData; | 5 | property var cardData; |
102 | 6 | property var artShapeBorderSource; | ||
103 | 6 | property real fontScale: 1.0; | 7 | property real fontScale: 1.0; |
104 | 7 | property int headerAlignment: Text.AlignLeft; | 8 | property int headerAlignment: Text.AlignLeft; |
105 | 8 | property int fixedHeaderHeight: -1; | 9 | property int fixedHeaderHeight: -1; |
106 | @@ -32,6 +33,7 @@ | |||
107 | 32 | Component.onCompleted: updateWidthHeightBindings(); | 33 | Component.onCompleted: updateWidthHeightBindings(); |
108 | 33 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); | 34 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); |
109 | 34 | visible: image.status == Image.Ready; | 35 | visible: image.status == Image.Ready; |
110 | 36 | borderSource: artShapeBorderSource; | ||
111 | 35 | function updateWidthHeightBindings() { | 37 | function updateWidthHeightBindings() { |
112 | 36 | if (aspectSmallerThanImageAspect) { | 38 | if (aspectSmallerThanImageAspect) { |
113 | 37 | width = Qt.binding(function() { return !visible ? 0 : image.width }); | 39 | width = Qt.binding(function() { return !visible ? 0 : image.width }); |
114 | 38 | 40 | ||
115 | === modified file 'tests/plugins/Dash/cardcreator/4.res' | |||
116 | --- tests/plugins/Dash/cardcreator/4.res 2014-05-07 13:31:55 +0000 | |||
117 | +++ tests/plugins/Dash/cardcreator/4.res 2014-05-15 09:39:51 +0000 | |||
118 | @@ -3,6 +3,7 @@ | |||
119 | 3 | property var template; | 3 | property var template; |
120 | 4 | property var components; | 4 | property var components; |
121 | 5 | property var cardData; | 5 | property var cardData; |
122 | 6 | property var artShapeBorderSource; | ||
123 | 6 | property real fontScale: 1.0; | 7 | property real fontScale: 1.0; |
124 | 7 | property int headerAlignment: Text.AlignLeft; | 8 | property int headerAlignment: Text.AlignLeft; |
125 | 8 | property int fixedHeaderHeight: -1; | 9 | property int fixedHeaderHeight: -1; |
126 | 9 | 10 | ||
127 | === modified file 'tests/plugins/Dash/cardcreator/5.res' | |||
128 | --- tests/plugins/Dash/cardcreator/5.res 2014-05-07 15:30:16 +0000 | |||
129 | +++ tests/plugins/Dash/cardcreator/5.res 2014-05-15 09:39:51 +0000 | |||
130 | @@ -3,6 +3,7 @@ | |||
131 | 3 | property var template; | 3 | property var template; |
132 | 4 | property var components; | 4 | property var components; |
133 | 5 | property var cardData; | 5 | property var cardData; |
134 | 6 | property var artShapeBorderSource; | ||
135 | 6 | property real fontScale: 1.0; | 7 | property real fontScale: 1.0; |
136 | 7 | property int headerAlignment: Text.AlignLeft; | 8 | property int headerAlignment: Text.AlignLeft; |
137 | 8 | property int fixedHeaderHeight: -1; | 9 | property int fixedHeaderHeight: -1; |
138 | @@ -32,6 +33,7 @@ | |||
139 | 32 | Component.onCompleted: updateWidthHeightBindings(); | 33 | Component.onCompleted: updateWidthHeightBindings(); |
140 | 33 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); | 34 | onAspectSmallerThanImageAspectChanged: updateWidthHeightBindings(); |
141 | 34 | visible: image.status == Image.Ready; | 35 | visible: image.status == Image.Ready; |
142 | 36 | borderSource: artShapeBorderSource; | ||
143 | 35 | function updateWidthHeightBindings() { | 37 | function updateWidthHeightBindings() { |
144 | 36 | if (aspectSmallerThanImageAspect) { | 38 | if (aspectSmallerThanImageAspect) { |
145 | 37 | width = Qt.binding(function() { return !visible ? 0 : image.width }); | 39 | width = Qt.binding(function() { return !visible ? 0 : image.width }); |
26 + * Copyright (C) 2013 Canonical, Ltd.
2014 ?