on xenial help sign in
Moar style
commit436c2fe3c084a7f21e7357951df13f1e213eec69 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateMon 18 Jan 2016, 15:09 (11 years ago) parent3579629
1 file changed+1−14
plugins/Dash/CardSocialAttributes.qml+1−14
plugins/Dash/CardSocialAttributes.qml+1−14
@@ -45,24 +45,13 @@ Column {
4545 rightMargin: units.gu(1)
4646 }
4747 columns: 2 + repeater.count % 2
48− rowSpacing: units.gu(.5)
48+ rowSpacing: units.gu(2)
4949
5050 Repeater {
5151 id: repeater
5252 delegate: Row {
5353 objectName: "delegate" + index
5454 spacing: units.gu(0.5)
55− readonly property int column: index % grid.columns;
56− Layout.alignment: {
57− if (column == 0) return Qt.AlignLeft;
58− if (column == grid.columns - 1 || index == repeater.count - 1) return Qt.AlignRight;
59− if (column == 1) return Qt.AlignHCenter;
60− }
61− Layout.column: index % grid.columns
62− Layout.row: index / grid.columns
63− Layout.columnSpan: index == repeater.count - 1 && grid.columns == 3 && column == 1 ? 2 : 1
64− Layout.maximumWidth: Math.max(icon.width, label.x + label.implicitWidth)
65− Layout.fillWidth: true
6655 height: units.gu(2)
6756 AbstractButton {
6857 height: units.gu(2)
@@ -88,12 +77,10 @@ Column {
8877 }
8978 Label {
9079 id: label
91− width: parent.width - x
9280 anchors.verticalCenter: parent.verticalCenter
9381 text: "label" in modelData && modelData["label"] || "";
9482 elide: Text.ElideRight
9583 maximumLineCount: 1
96− font.weight: "style" in modelData && modelData["style"] === "highlighted" ? Font.Bold : Font.Light
9784 fontSize: "x-small"
9885 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
9986 color: socialAttributes.color