on xenial help sign in
More tweaks
commite903cd51770af7144c59b0abcbf2cbed3186b2c1 authorMichal Hruby <michal.hruby@canonical.com> dateWed 5 Mar 2014, 17:21 (13 years ago) parent21c5108
3 files changed+9−3
qml/Dash/CardHeader.qml+5−1 qml/Dash/Previews/PreviewActions.qml+1−1 qml/Dash/Previews/PreviewHeader.qml+3−1
qml/Dash/CardHeader.qml+5−1
@@ -27,6 +27,7 @@ Item {
2727 property alias altPrice: altPriceLabel.text
2828
2929 property alias titleWeight: titleLabel.font.weight
30+ property alias titleSize: titleLabel.fontSize
3031
3132 // FIXME: Saviq, used to scale fonts down in Carousel
3233 property real fontScale: 1.0
@@ -61,6 +62,7 @@ Item {
6162 // TODO karni: Icon aspect-ratio is 8:7.5. Revisit these values to avoid fraction of pixels.
6263 width: units.gu(6)
6364 height: units.gu(5.625)
65+ anchors.verticalCenter: parent.verticalCenter
6466 visible: useMascotShape && image && image.status === Image.Ready
6567 readonly property int maxSize: Math.max(width, height)
6668
@@ -72,6 +74,7 @@ Item {
7274
7375 width: source ? mascotShape.width : 0
7476 height: mascotShape.height
77+ anchors.verticalCenter: parent.verticalCenter
7578 visible: !useMascotShape && status === Image.Ready
7679
7780 sourceSize { width: mascotShape.maxSize; height: mascotShape.maxSize }
@@ -83,7 +86,8 @@ Item {
8386 Column {
8487 objectName: "column"
8588 width: parent.width - x
86− spacing: units.gu(0.5)
89+ spacing: units.gu(0.25)
90+ anchors.verticalCenter: parent.verticalCenter
8791
8892 Label {
8993 id: titleLabel
qml/Dash/Previews/PreviewActions.qml+1−1
@@ -24,7 +24,7 @@ import QtQuick 2.1
2424PreviewWidget {
2525 id: root
2626
27− height: row.height
27+ height: row.height + units.gu(1)
2828
2929 Row {
3030 id: row
qml/Dash/Previews/PreviewHeader.qml+3−1
@@ -34,5 +34,7 @@ PreviewWidget {
3434 title: root.widgetData["title"] || ""
3535 subtitle: root.widgetData["subtitle"] || ""
3636 width: parent.width
37+
38+ titleSize: "large"
3739 }
38−}
40+}