Merge lp:~mterry/unity8/default-icon-background into lp:unity8

Proposed by Michael Terry
Status: Work in progress
Proposed branch: lp:~mterry/unity8/default-icon-background
Merge into: lp:unity8
Diff against target: 451 lines (+96/-54)
15 files modified
plugins/Dash/CardCreator.js (+12/-9)
qml/Components/ExternalIcon.qml (+49/-0)
qml/Dash/Previews/PreviewHeader.qml (+9/-17)
qml/Launcher/LauncherDelegate.qml (+4/-8)
qml/Stages/Splash.qml (+2/-10)
tests/plugins/Dash/cardcreator/1.res (+2/-1)
tests/plugins/Dash/cardcreator/1.res.cardcreator (+2/-1)
tests/plugins/Dash/cardcreator/11.res (+2/-1)
tests/plugins/Dash/cardcreator/11.res.cardcreator (+2/-1)
tests/plugins/Dash/cardcreator/12.res (+2/-1)
tests/plugins/Dash/cardcreator/12.res.cardcreator (+2/-1)
tests/plugins/Dash/cardcreator/3.res (+2/-1)
tests/plugins/Dash/cardcreator/3.res.cardcreator (+2/-1)
tests/plugins/Dash/cardcreator/5.res (+2/-1)
tests/plugins/Dash/cardcreator/5.res.cardcreator (+2/-1)
To merge this branch: bzr merge lp:~mterry/unity8/default-icon-background
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Unity Team Pending
Review via email: mp+295518@code.launchpad.net

Commit message

Force all app icons to have a background, so we don't get any bleed-through to the dash wallpaper.
UbuntuColors.porcelain is the current color, but we reserve the right to change it. If you don't like that, use a background color in your app icons!

Description of the change

Always specify a backgroundColor for app icons. It looks bad to have the wallpaper peeking through. And per [1], designers don't like transparent icon backgrounds either.

I chose UbuntuColors.porcelain for the default color. My logic was:

- White or black are probably the best/most-neutral choices.
- The current default wallpaper is closer to white than black. So existing transparent icons are expecting to be surrounded by a light color.
- When uploading an app, the developer first sees their icon presented on a whitish webpage background (on myapps.developer.ubuntu.com). They might reasonably expect that it would look like that on their device.
- Since the user obviously isn't picky about the background color, we can deviate from pure white a bit to be more on-brand and use porcelain rather than "#ffffff".

I know that I just filed another branch to get unity8 to use UbuntuColors less, but in this case, it's reasonable. App icons don't relate to the theme, so it's not appropriate to use a themed color name for this case.

I think it's reasonable for us to reserve the right to change the color in the future, though once we establish white-ish as the background, we probably shouldn't deviate much from white-ish.

I didn't go crazy with modifying cards I didn't need to. My primary focus was app icons, though there might be several other places where we load external icons/images that we want to ensure we don't make it look janky.

For testing, search for "sad trombone" in the store and install it. It uses a transparent icon.

[1] https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1449295/comments/2

== Checklist ==

 * 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

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
 NA

 * If you changed the UI, has there been a design review?
 Working on it.

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2402
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1283/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1726
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1675
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1675
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1668
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1668/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1668
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1668/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1668/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1668
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1668/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1668
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1668/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1668/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1668
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1668/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1668
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1668/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1668/console

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1283/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

This probably conflicts like mad with the current silo (also with the huge stack of changes i have for CardCreator.js) but i guess at least you should stack it into the top of the already approved branches.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2402
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1286/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/814
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/814
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/814
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1729
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1678
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1678
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1678
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1671/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1671
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1671/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1286/rebuild

review: Approve (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

From Paty when I asked about this branch: "Regarding the opinion on the colour choice for the icons BG, I pinged Mattheiu, who is the icon designer and he is gonna look into this and hopefully, comment on the bug ticket. I'm sorry I'm not able to help more on this. I think porcelain should work well, but I rather not make visual decisions... : P"

So we'll see what Mattheiu says.

Unmerged revisions

2402. By Michael Terry

Fix card creator tests

2401. By Michael Terry

Always provide a background color for app icons

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Dash/CardCreator.js'
2--- plugins/Dash/CardCreator.js 2016-05-04 14:09:00 +0000
3+++ plugins/Dash/CardCreator.js 2016-05-23 20:50:30 +0000
4@@ -65,8 +65,9 @@
5 // %4 is whether the image or the Loader with the UbuntuShape/ProportionalShape should be visible
6 // %5 is used as aspect ratio fallback
7 // %6 is whether the loader should be asynchronous or not
8-// %7 is injected as code to artImage
9-// %8 is used as image fallback
10+// %7 is used as the background color for the art's UbuntuShape
11+// %8 is injected as code to artImage
12+// %9 is used as image fallback
13 var kArtShapeHolderCode = 'Item { \n\
14 id: artShapeHolder; \n\
15 height: root.fixedArtShapeSize.height > 0 ? root.fixedArtShapeSize.height : artShapeLoader.height; \n\
16@@ -75,7 +76,7 @@
17 Loader { \n\
18 id: artShapeLoader; \n\
19 objectName: "artShapeLoader"; \n\
20- readonly property string cardArt: cardData && cardData["art"] || %8; \n\
21+ readonly property string cardArt: cardData && cardData["art"] || %9; \n\
22 active: cardArt != ""; \n\
23 asynchronous: %6; \n\
24 visible: status == Loader.Ready; \n\
25@@ -92,6 +93,7 @@
26 id: artShapeShapeComponent; \n\
27 UbuntuShape { \n\
28 source: artImage; \n\
29+ backgroundColor: %7; \n\
30 sourceFillMode: UbuntuShape.PreserveAspectCrop; \n\
31 radius: "medium"; \n\
32 aspect: { \n\
33@@ -106,7 +108,7 @@
34 } \n\
35 Component { \n\
36 id: artShapeIconComponent; \n\
37- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; } \n\
38+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: %7; } \n\
39 } \n\
40 } \n\
41 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1; \n\
42@@ -130,7 +132,7 @@
43 visible: !%4; \n\
44 width: %2; \n\
45 height: %3; \n\
46- %7 \n\
47+ %8 \n\
48 } \n\
49 } \n\
50 } \n\
51@@ -519,9 +521,9 @@
52 var fallbackStatusCode = "";
53 var fallbackURICode = '""';
54 if (fallback !== "") {
55- // fallbackStatusCode has %6 in it because we want to substitute it for fallbackURICode
56- // which in kArtShapeHolderCode is %8
57- fallbackStatusCode += 'onStatusChanged: if (status === Image.Error) source = %8;';
58+ // fallbackStatusCode has %9 in it because we want to substitute it for fallbackURICode
59+ // which in kArtShapeHolderCode is %9
60+ fallbackStatusCode += 'onStatusChanged: if (status === Image.Error) source = %9;';
61 fallbackURICode = 'decodeURI("%1")'.arg(fallback);
62 }
63 code += kArtShapeHolderCode.arg(artAnchors)
64@@ -530,8 +532,9 @@
65 .arg(isConciergeMode ? "false" : "true")
66 .arg(aspectRatio)
67 .arg(asynchronous)
68+ .arg(hasBackground ? '"transparent"' : 'UbuntuColors.porcelain')
69 .arg(fallbackStatusCode)
70- .arg(fallbackURICode);
71+ .arg(fallbackURICode); // must be last, it might contain %N strings
72 } else {
73 code += 'readonly property size artShapeSize: Qt.size(-1, -1);\n'
74 }
75
76=== added file 'qml/Components/ExternalIcon.qml'
77--- qml/Components/ExternalIcon.qml 1970-01-01 00:00:00 +0000
78+++ qml/Components/ExternalIcon.qml 2016-05-23 20:50:30 +0000
79@@ -0,0 +1,49 @@
80+/*
81+ * Copyright (C) 2016 Canonical, Ltd.
82+ *
83+ * This program is free software; you can redistribute it and/or modify
84+ * it under the terms of the GNU General Public License as published by
85+ * the Free Software Foundation; version 3.
86+ *
87+ * This program is distributed in the hope that it will be useful,
88+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
89+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
90+ * GNU General Public License for more details.
91+ *
92+ * You should have received a copy of the GNU General Public License
93+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
94+ */
95+
96+import QtQuick 2.4
97+import Ubuntu.Components 1.3
98+
99+/*! \brief Display icon for an app
100+
101+ This widget shows the specified image, with standard settings for showing
102+ an app icon.
103+
104+ If you make any important changes here, you may also want to update
105+ kArtShapeHolderCode in CardCreator.js, since that is used to show app
106+ icons in the dash.
107+ */
108+
109+ProportionalShape {
110+ id: root
111+
112+ property alias icon: iconImage.source
113+ property alias cache: iconImage.cache
114+
115+ readonly property alias status: iconImage.status
116+
117+ // It's bad form to bleed through, so we provide a color of last resort
118+ backgroundColor: UbuntuColors.porcelain
119+
120+ sourceHorizontalAlignment: UbuntuShape.AlignHCenter
121+ sourceVerticalAlignment: UbuntuShape.AlignVCenter
122+
123+ source: Image {
124+ id: iconImage
125+ sourceSize.width: root.width
126+ sourceSize.height: root.height
127+ }
128+}
129
130=== modified file 'qml/Dash/Previews/PreviewHeader.qml'
131--- qml/Dash/Previews/PreviewHeader.qml 2016-03-10 22:39:24 +0000
132+++ qml/Dash/Previews/PreviewHeader.qml 2016-05-23 20:50:30 +0000
133@@ -18,6 +18,7 @@
134 import Ubuntu.Components 1.3
135 import Dash 0.1
136 import "../"
137+import "../../Components"
138
139 /*! This preview widget shows a header
140 * The title comes in widgetData["title"]
141@@ -71,26 +72,17 @@
142 visible: active
143
144 anchors.verticalCenter: parent.verticalCenter
145- // TODO karni: Icon aspect-ratio is 8:7.5. Revisit these values to avoid fraction of pixels.
146- width: units.gu(6)
147- height: units.gu(5.625)
148- readonly property int maxSize: Math.max(width, height) * 4
149 asynchronous: true
150
151- sourceComponent: UbuntuShape {
152+ sourceComponent: ExternalIcon {
153 objectName: "mascotShape"
154- visible: source.status === Image.Ready
155- sourceFillMode: UbuntuShape.PreserveAspectCrop
156- sourceHorizontalAlignment: UbuntuShape.AlignHCenter
157- sourceVerticalAlignment: UbuntuShape.AlignVCenter
158- source: Image {
159- source: headerRoot.mascot
160- width: source ? mascotShapeLoader.width : 0
161- height: mascotShapeLoader.height
162-
163- sourceSize { width: mascotShapeLoader.maxSize; height: mascotShapeLoader.maxSize }
164- onStatusChanged: if (status === Image.Error) source = headerRoot.fallback;
165- }
166+ visible: status === Image.Ready
167+
168+ // TODO karni: Icon aspect-ratio is 8:7.5. Revisit these values to avoid fraction of pixels.
169+ width: source ? units.gu(6) : 0
170+
171+ icon: headerRoot.mascot
172+ onStatusChanged: if (status === Image.Error) icon = headerRoot.fallback;
173 }
174 }
175
176
177=== modified file 'qml/Launcher/LauncherDelegate.qml'
178--- qml/Launcher/LauncherDelegate.qml 2016-03-29 13:51:56 +0000
179+++ qml/Launcher/LauncherDelegate.qml 2016-05-23 20:50:30 +0000
180@@ -16,6 +16,7 @@
181
182 import QtQuick 2.4
183 import Ubuntu.Components 1.3
184+import "../Components"
185
186 Item {
187 id: root
188@@ -139,18 +140,13 @@
189 visible: root.highlighted
190 }
191
192- ProportionalShape {
193+ ExternalIcon {
194 id: iconShape
195 anchors.centerIn: parent
196 width: root.itemWidth
197 aspect: UbuntuShape.DropShadow
198- source: Image {
199- id: iconImage
200- sourceSize.width: iconShape.width
201- sourceSize.height: iconShape.height
202- source: root.iconName
203- cache: false // see lpbug#1543290 why no cache
204- }
205+ icon: root.iconName
206+ cache: false // see lpbug#1543290 why no cache
207 }
208
209 UbuntuShape {
210
211=== modified file 'qml/Stages/Splash.qml'
212--- qml/Stages/Splash.qml 2016-03-08 20:59:22 +0000
213+++ qml/Stages/Splash.qml 2016-05-23 20:50:30 +0000
214@@ -108,25 +108,17 @@
215 cache: false
216 }
217
218- UbuntuShape {
219+ ExternalIcon {
220 id: iconShape
221 anchors.horizontalCenter: parent.horizontalCenter
222 anchors.verticalCenter: parent.verticalCenter
223 anchors.verticalCenterOffset: -units.gu(4)
224 width: units.gu(8)
225- height: units.gu(7.5)
226
227 visible: d.showIcon
228
229- radius: "medium"
230 aspect: UbuntuShape.Flat
231- sourceFillMode: Image.PreserveAspectCrop
232- source: Image {
233- id: iconImage
234- sourceSize.width: iconShape.width
235- sourceSize.height: iconShape.height
236- source: d.showIcon ? root.icon : ""
237- }
238+ icon: d.showIcon ? root.icon : ""
239 }
240
241 Label {
242
243=== modified file 'tests/plugins/Dash/cardcreator/1.res'
244--- tests/plugins/Dash/cardcreator/1.res 2016-05-04 14:09:00 +0000
245+++ tests/plugins/Dash/cardcreator/1.res 2016-05-23 20:50:30 +0000
246@@ -38,6 +38,7 @@
247 id: artShapeShapeComponent;
248 UbuntuShape {
249 source: artImage;
250+ backgroundColor: UbuntuColors.porcelain;
251 sourceFillMode: UbuntuShape.PreserveAspectCrop;
252 radius: "medium";
253 aspect: {
254@@ -52,7 +53,7 @@
255 }
256 Component {
257 id: artShapeIconComponent;
258- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
259+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
260 }
261 }
262 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
263
264=== modified file 'tests/plugins/Dash/cardcreator/1.res.cardcreator'
265--- tests/plugins/Dash/cardcreator/1.res.cardcreator 2016-05-04 14:09:00 +0000
266+++ tests/plugins/Dash/cardcreator/1.res.cardcreator 2016-05-23 20:50:30 +0000
267@@ -37,6 +37,7 @@
268 id: artShapeShapeComponent;
269 UbuntuShape {
270 source: artImage;
271+ backgroundColor: UbuntuColors.porcelain;
272 sourceFillMode: UbuntuShape.PreserveAspectCrop;
273 radius: "medium";
274 aspect: {
275@@ -51,7 +52,7 @@
276 }
277 Component {
278 id: artShapeIconComponent;
279- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
280+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
281 }
282 }
283 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
284
285=== modified file 'tests/plugins/Dash/cardcreator/11.res'
286--- tests/plugins/Dash/cardcreator/11.res 2016-05-04 14:09:00 +0000
287+++ tests/plugins/Dash/cardcreator/11.res 2016-05-23 20:50:30 +0000
288@@ -76,6 +76,7 @@
289 id: artShapeShapeComponent;
290 UbuntuShape {
291 source: artImage;
292+ backgroundColor: "transparent";
293 sourceFillMode: UbuntuShape.PreserveAspectCrop;
294 radius: "medium";
295 aspect: {
296@@ -90,7 +91,7 @@
297 }
298 Component {
299 id: artShapeIconComponent;
300- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
301+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: "transparent"; }
302 }
303 }
304 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
305
306=== modified file 'tests/plugins/Dash/cardcreator/11.res.cardcreator'
307--- tests/plugins/Dash/cardcreator/11.res.cardcreator 2016-05-04 14:09:00 +0000
308+++ tests/plugins/Dash/cardcreator/11.res.cardcreator 2016-05-23 20:50:30 +0000
309@@ -75,6 +75,7 @@
310 id: artShapeShapeComponent;
311 UbuntuShape {
312 source: artImage;
313+ backgroundColor: "transparent";
314 sourceFillMode: UbuntuShape.PreserveAspectCrop;
315 radius: "medium";
316 aspect: {
317@@ -89,7 +90,7 @@
318 }
319 Component {
320 id: artShapeIconComponent;
321- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
322+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: "transparent"; }
323 }
324 }
325 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
326
327=== modified file 'tests/plugins/Dash/cardcreator/12.res'
328--- tests/plugins/Dash/cardcreator/12.res 2016-05-04 14:25:02 +0000
329+++ tests/plugins/Dash/cardcreator/12.res 2016-05-23 20:50:30 +0000
330@@ -38,6 +38,7 @@
331 id: artShapeShapeComponent;
332 UbuntuShape {
333 source: artImage;
334+ backgroundColor: UbuntuColors.porcelain;
335 sourceFillMode: UbuntuShape.PreserveAspectCrop;
336 radius: "medium";
337 aspect: {
338@@ -52,7 +53,7 @@
339 }
340 Component {
341 id: artShapeIconComponent;
342- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
343+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
344 }
345 }
346 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
347
348=== modified file 'tests/plugins/Dash/cardcreator/12.res.cardcreator'
349--- tests/plugins/Dash/cardcreator/12.res.cardcreator 2016-05-04 14:25:02 +0000
350+++ tests/plugins/Dash/cardcreator/12.res.cardcreator 2016-05-23 20:50:30 +0000
351@@ -37,6 +37,7 @@
352 id: artShapeShapeComponent;
353 UbuntuShape {
354 source: artImage;
355+ backgroundColor: UbuntuColors.porcelain;
356 sourceFillMode: UbuntuShape.PreserveAspectCrop;
357 radius: "medium";
358 aspect: {
359@@ -51,7 +52,7 @@
360 }
361 Component {
362 id: artShapeIconComponent;
363- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
364+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
365 }
366 }
367 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
368
369=== modified file 'tests/plugins/Dash/cardcreator/3.res'
370--- tests/plugins/Dash/cardcreator/3.res 2016-05-04 14:09:00 +0000
371+++ tests/plugins/Dash/cardcreator/3.res 2016-05-23 20:50:30 +0000
372@@ -38,6 +38,7 @@
373 id: artShapeShapeComponent;
374 UbuntuShape {
375 source: artImage;
376+ backgroundColor: UbuntuColors.porcelain;
377 sourceFillMode: UbuntuShape.PreserveAspectCrop;
378 radius: "medium";
379 aspect: {
380@@ -52,7 +53,7 @@
381 }
382 Component {
383 id: artShapeIconComponent;
384- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
385+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
386 }
387 }
388 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
389
390=== modified file 'tests/plugins/Dash/cardcreator/3.res.cardcreator'
391--- tests/plugins/Dash/cardcreator/3.res.cardcreator 2016-05-04 14:09:00 +0000
392+++ tests/plugins/Dash/cardcreator/3.res.cardcreator 2016-05-23 20:50:30 +0000
393@@ -37,6 +37,7 @@
394 id: artShapeShapeComponent;
395 UbuntuShape {
396 source: artImage;
397+ backgroundColor: UbuntuColors.porcelain;
398 sourceFillMode: UbuntuShape.PreserveAspectCrop;
399 radius: "medium";
400 aspect: {
401@@ -51,7 +52,7 @@
402 }
403 Component {
404 id: artShapeIconComponent;
405- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
406+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
407 }
408 }
409 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
410
411=== modified file 'tests/plugins/Dash/cardcreator/5.res'
412--- tests/plugins/Dash/cardcreator/5.res 2016-05-04 14:09:00 +0000
413+++ tests/plugins/Dash/cardcreator/5.res 2016-05-23 20:50:30 +0000
414@@ -38,6 +38,7 @@
415 id: artShapeShapeComponent;
416 UbuntuShape {
417 source: artImage;
418+ backgroundColor: UbuntuColors.porcelain;
419 sourceFillMode: UbuntuShape.PreserveAspectCrop;
420 radius: "medium";
421 aspect: {
422@@ -52,7 +53,7 @@
423 }
424 Component {
425 id: artShapeIconComponent;
426- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
427+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
428 }
429 }
430 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;
431
432=== modified file 'tests/plugins/Dash/cardcreator/5.res.cardcreator'
433--- tests/plugins/Dash/cardcreator/5.res.cardcreator 2016-05-04 14:09:00 +0000
434+++ tests/plugins/Dash/cardcreator/5.res.cardcreator 2016-05-23 20:50:30 +0000
435@@ -37,6 +37,7 @@
436 id: artShapeShapeComponent;
437 UbuntuShape {
438 source: artImage;
439+ backgroundColor: UbuntuColors.porcelain;
440 sourceFillMode: UbuntuShape.PreserveAspectCrop;
441 radius: "medium";
442 aspect: {
443@@ -51,7 +52,7 @@
444 }
445 Component {
446 id: artShapeIconComponent;
447- ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; }
448+ ProportionalShape { source: artImage; aspect: UbuntuShape.DropShadow; backgroundColor: UbuntuColors.porcelain; }
449 }
450 }
451 readonly property real fixedArtShapeSizeAspect: (root.fixedArtShapeSize.height > 0 && root.fixedArtShapeSize.width > 0) ? root.fixedArtShapeSize.width / root.fixedArtShapeSize.height : -1;

Subscribers

People subscribed via source and target branches