@@ -24,7 +24,7 @@ import Unity.Indicators 0.1 as Indicators
24Indicators.IndicatorBase {
24Indicators.IndicatorBase {
25 id: indicatorWidget
25 id: indicatorWidget
27− property int iconSize: height
27+ property int iconSize: units.gu(2)
28 property alias leftLabel: itemLeftLabel.text
28 property alias leftLabel: itemLeftLabel.text
29 property alias rightLabel: itemRightLabel.text
29 property alias rightLabel: itemRightLabel.text
30 property var icons: undefined
30 property var icons: undefined
@@ -34,7 +34,6 @@ Indicators.IndicatorBase {
36 id: itemRow
36 id: itemRow
37− width: childrenRect.width
38 objectName: "itemRow"
37 objectName: "itemRow"
40 top: parent.top
39 top: parent.top
@@ -55,7 +54,6 @@ Indicators.IndicatorBase {
58− width: childrenRect.width
60 top: parent.top
58 top: parent.top
61 bottom: parent.bottom
59 bottom: parent.bottom
@@ -65,22 +63,20 @@ Indicators.IndicatorBase {
65 model: indicatorWidget.icons
63 model: indicatorWidget.icons
68− width: guRoundUp(itemImage.width)
66+ width: guRoundUp(itemImage.width) + units.gu(1)
69− height: indicatorWidget.iconSize
67+ anchors { top: parent.top; bottom: parent.bottom }
72 id: itemImage
70 id: itemImage
73 objectName: "itemImage"
71 objectName: "itemImage"
74− visible: source != ""
72+ // FIXME: Should be dynamic width, see http://pad.lv/1284235
75− source: modelData
73+ width: indicatorWidget.iconSize
76− height: parent.height
74+ height: indicatorWidget.iconSize
77− anchors.horizontalCenter: parent.horizontalCenter
75+ anchors.centerIn: parent
78− fillMode: Image.PreserveAspectFit
76+
79−
77+ // FIXME: Icon needs to accept source, see http://pad.lv/1284233
80− sourceSize {
78+ name: modelData.replace("image://theme/", "")
81− width: indicatorWidget.iconSize
79+ color: "#CCCCCC"
82− height: indicatorWidget.iconSize