on xenial help sign in
Updated alignment
4acc103Andrea Cimitan
plugins/Dash/CardCreator.js+1−1
@@ -223,7 +223,7 @@ var kTitleLabelCode = 'Label { \n\
223 visible: showHeader %3; \n\
223 visible: showHeader %3; \n\
224 text: root.title; \n\
224 text: root.title; \n\
225 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal; \n\
225 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal; \n\
226− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment; \n\
226+ horizontalAlignment: root.titleAlignment; \n\
227 }\n';
227 }\n';
228
228
229// %1 is used as extra anchors of emblemIcon
229// %1 is used as extra anchors of emblemIcon
tests/plugins/Dash/cardcreator/1.res+1−1
@@ -75,7 +75,7 @@ Label {
75 visible: showHeader ;
75 visible: showHeader ;
76 text: root.title;
76 text: root.title;
77 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
77 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
78− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
78+ horizontalAlignment: root.titleAlignment;
79 }
79 }
80UbuntuShape {
80UbuntuShape {
81 id: touchdown;
81 id: touchdown;
tests/plugins/Dash/cardcreator/2.res+1−1
@@ -99,7 +99,7 @@ Image {
99 visible: showHeader ;
99 visible: showHeader ;
100 text: root.title;
100 text: root.title;
101 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
101 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
102− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
102+ horizontalAlignment: root.titleAlignment;
103 }
103 }
104 ,Label {
104 ,Label {
105 id: subtitleLabel;
105 id: subtitleLabel;
tests/plugins/Dash/cardcreator/3.res+1−1
@@ -75,7 +75,7 @@ Label {
75 visible: showHeader ;
75 visible: showHeader ;
76 text: root.title;
76 text: root.title;
77 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
77 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
78− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
78+ horizontalAlignment: root.titleAlignment;
79 }
79 }
80Label {
80Label {
81 id: subtitleLabel;
81 id: subtitleLabel;
tests/plugins/Dash/cardcreator/4.res+1−1
@@ -79,7 +79,7 @@ Label {
79 visible: showHeader ;
79 visible: showHeader ;
80 text: root.title;
80 text: root.title;
81 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
81 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
82− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
82+ horizontalAlignment: root.titleAlignment;
83 }
83 }
84,Label {
84,Label {
85 id: subtitleLabel;
85 id: subtitleLabel;
tests/plugins/Dash/cardcreator/5.res+1−1
@@ -119,7 +119,7 @@ Label {
119 visible: showHeader && overlayLoader.active;
119 visible: showHeader && overlayLoader.active;
120 text: root.title;
120 text: root.title;
121 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
121 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
122− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
122+ horizontalAlignment: root.titleAlignment;
123 }
123 }
124Label {
124Label {
125 id: subtitleLabel;
125 id: subtitleLabel;
tests/plugins/Dash/cardcreator/6.res+1−1
@@ -74,7 +74,7 @@ Item {
74 visible: showHeader ;
74 visible: showHeader ;
75 text: root.title;
75 text: root.title;
76 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
76 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
77− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
77+ horizontalAlignment: root.titleAlignment;
78 }
78 }
79,Label {
79,Label {
80 id: subtitleLabel;
80 id: subtitleLabel;
tests/plugins/Dash/cardcreator/7.res+1−1
@@ -100,7 +100,7 @@ Image {
100 visible: showHeader ;
100 visible: showHeader ;
101 text: root.title;
101 text: root.title;
102 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
102 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
103− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
103+ horizontalAlignment: root.titleAlignment;
104 }
104 }
105,Label {
105,Label {
106 id: subtitleLabel;
106 id: subtitleLabel;