Merge lp:~cimi/unity8/fix-1393008 into lp:unity8

Proposed by Andrea Cimitan on 2015-01-12
Status: Merged
Approved by: Michał Sawicz on 2015-01-13
Approved revision: 1545
Merged at revision: 1553
Proposed branch: lp:~cimi/unity8/fix-1393008
Merge into: lp:unity8
Diff against target: 34 lines (+3/-3)
2 files modified
plugins/Dash/CardCreator.js (+1/-1)
tests/qmltests/Dash/tst_Card.qml (+2/-2)
To merge this branch: bzr merge lp:~cimi/unity8/fix-1393008
Reviewer Review Type Date Requested Status
Michał Sawicz 2015-01-12 Approve on 2015-01-13
PS Jenkins bot continuous-integration Needs Fixing on 2015-01-12
Review via email: mp+246138@code.launchpad.net

Commit Message

support background on horizontal cards with summary

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
n
 * Did you perform an exploratory manual test run of your code change and any related functionality?
y
 * Did you make sure that your branch does not contain spurious tags?
y
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n
 * If you changed the UI, has there been a design review?
y

To post a comment you must log in.
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Y
 * Did CI run pass? If not, please explain why.
unstable :/
 * Did you make sure that the branch does not contain spurious tags?
Y

review: Approve

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 2014-11-26 08:27:45 +0000
3+++ plugins/Dash/CardCreator.js 2015-01-12 13:13:52 +0000
4@@ -320,7 +320,7 @@
5 var hasSummary = components["summary"] || false;
6 var artAndSummary = hasArt && hasSummary;
7 var isHorizontal = template["card-layout"] === "horizontal";
8- var hasBackground = !isHorizontal && (template["card-background"] || components["background"] || artAndSummary);
9+ var hasBackground = (hasSummary || !isHorizontal) && (template["card-background"] || components["background"] || artAndSummary);
10 var hasTitle = components["title"] || false;
11 var hasMascot = components["mascot"] || false;
12 var hasEmblem = components["emblem"] && !(hasMascot && template["card-size"] === "small") || false;
13
14=== modified file 'tests/qmltests/Dash/tst_Card.qml'
15--- tests/qmltests/Dash/tst_Card.qml 2015-01-09 09:15:45 +0000
16+++ tests/qmltests/Dash/tst_Card.qml 2015-01-12 13:13:52 +0000
17@@ -61,7 +61,7 @@
18 },
19 {
20 "name": "Art, header, summary - horizontal",
21- "layout": { "template": { "card-layout": "horizontal" },
22+ "layout": { "template": { "card-layout": "horizontal", "card-background": { "type": "gradient", "elements": ["grey", "white"] } },
23 "components": JSON.parse(Helpers.fullMapping) }
24 },
25 {
26@@ -407,7 +407,7 @@
27 return [
28 { tag: "Art and summary", visible: true, color: "#ffffff", index: 0 },
29 { tag: "No Summary", visible: false, index: 6 },
30- { tag: "Horizontal", visible: false, index: 5 },
31+ { tag: "Horizontal", visible: true, color: "#808080", index: 5 },
32 { tag: "Grey background", visible: true, color: "#808080", index: 10 },
33 { tag: "Overriden Gradient background", visible: true, color: "#808080", gradientColor: "#ffffff",
34 background: {type: "color", elements: ["grey", "white"]}, index: 10 },

Subscribers

People subscribed via source and target branches