on xenial help sign in
Make the > and text aligning a bit "better"
56d10cbAlbert Astals Cid
qml/Dash/DashSectionHeader.qml+22−25
@@ -27,36 +27,33 @@ Item {
27
27
28 height: units.gu(5)
28 height: units.gu(5)
29
29
30− RowLayout {
30+ Label {
31− spacing: units.gu(.5)
31+ id: label
32+
32 anchors {
33 anchors {
33 left: parent.left
34 left: parent.left
34− right: parent.right
35− verticalCenter: parent.verticalCenter
36− margins: units.gu(1)
35+ leftMargin: units.gu(1)
37− }
36+ baseline: icon.bottom
38−
39− Label {
40− id: label
41−
42− font.family: "Ubuntu"
43− fontSize: "medium"
44− elide: Text.ElideRight
45− maximumLineCount: 1
46− textFormat: Text.PlainText
47− width: Math.min(parent.width - units.gu(4), implicitWidth)
48 }
37 }
49
38
50− Icon {
39+ font.family: "Ubuntu"
51− id: icon
40+ fontSize: "medium"
52− visible: name != ""
41+ elide: Text.ElideRight
53− height: units.gu(1.25)
42+ maximumLineCount: 1
54− width: height
43+ textFormat: Text.PlainText
55− color: label.color
44+ width: Math.min(parent.width - units.gu(4), implicitWidth)
56− }
45+ }
57
46
58− Item {
47+ Icon {
59− Layout.fillWidth: true
48+ id: icon
49+ visible: name != ""
50+ height: units.gu(1.25)
51+ width: height
52+ color: label.color
53+ anchors {
54+ left: label.right
55+ leftMargin: units.gu(0.5)
56+ verticalCenter: parent.verticalCenter
60 }
57 }
61 }
58 }
62
59