@@ -27,6 +27,7 @@ Item {
27 property alias altPrice: altPriceLabel.text
27 property alias altPrice: altPriceLabel.text
29 property alias titleWeight: titleLabel.font.weight
29 property alias titleWeight: titleLabel.font.weight
30+ property alias titleSize: titleLabel.fontSize
31 // FIXME: Saviq, used to scale fonts down in Carousel
32 // FIXME: Saviq, used to scale fonts down in Carousel
32 property real fontScale: 1.0
33 property real fontScale: 1.0
@@ -61,6 +62,7 @@ Item {
61 // TODO karni: Icon aspect-ratio is 8:7.5. Revisit these values to avoid fraction of pixels.
62 // TODO karni: Icon aspect-ratio is 8:7.5. Revisit these values to avoid fraction of pixels.
62 width: units.gu(6)
63 width: units.gu(6)
63 height: units.gu(5.625)
64 height: units.gu(5.625)
65+ anchors.verticalCenter: parent.verticalCenter
64 visible: useMascotShape && image && image.status === Image.Ready
66 visible: useMascotShape && image && image.status === Image.Ready
65 readonly property int maxSize: Math.max(width, height) * 4
67 readonly property int maxSize: Math.max(width, height) * 4
@@ -72,6 +74,7 @@ Item {
73 width: source ? mascotShape.width : 0
75 width: source ? mascotShape.width : 0
74 height: mascotShape.height
76 height: mascotShape.height
77+ anchors.verticalCenter: parent.verticalCenter
75 visible: !useMascotShape && status === Image.Ready
78 visible: !useMascotShape && status === Image.Ready
77 sourceSize { width: mascotShape.maxSize; height: mascotShape.maxSize }
80 sourceSize { width: mascotShape.maxSize; height: mascotShape.maxSize }
@@ -83,14 +86,16 @@ Item {
84 objectName: "column"
87 objectName: "column"
85 width: parent.width - x
88 width: parent.width - x
86− spacing: units.gu(0.5)
89+ spacing: units.gu(0.25)
90+ anchors.verticalCenter: parent.verticalCenter
89 id: titleLabel
93 id: titleLabel
90 objectName: "titleLabel"
94 objectName: "titleLabel"
91 anchors { left: parent.left; right: parent.right }
95 anchors { left: parent.left; right: parent.right }
92 elide: Text.ElideRight
96 elide: Text.ElideRight
93− font.weight: Font.DemiBold
97+ font.weight: Font.Normal
94 wrapMode: Text.Wrap
99 wrapMode: Text.Wrap
95 maximumLineCount: 2
100 maximumLineCount: 2
96 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
101 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
@@ -102,6 +107,7 @@ Item {
102 objectName: "subtitleLabel"
107 objectName: "subtitleLabel"
103 anchors { left: parent.left; right: parent.right }
108 anchors { left: parent.left; right: parent.right }
104 elide: Text.ElideRight
109 elide: Text.ElideRight
105 font.weight: Font.Light
111 font.weight: Font.Light
106 visible: titleLabel.text && text
112 visible: titleLabel.text && text
107 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
113 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)