on xenial help sign in
Fixed indicator spacing
commitca52a04043d6f67301078694e12325609fed36db authorNick Dedekind <nicholas.dedekind@gmail.com> dateFri 16 Aug 2013, 15:24 (13 years ago) parentd9d262c
3 files changed+17−16
Panel/Indicators/DefaultIndicatorWidget.qml+1−1 Panel/Indicators/DefaultIndicatorWidget2.qml+15−14 Panel/Indicators/NetworkIndicatorWidget.qml+1−1
Panel/Indicators/DefaultIndicatorWidget.qml+1−1
@@ -24,7 +24,7 @@ import Unity.IndicatorsLegacy 0.1 as Indicators
2424Indicators.IndicatorWidget {
2525 id: indicatorWidget
2626
27− width: itemRow.width + units.gu(1)
27+ width: itemRow.width + units.gu(0.7)
2828
2929 property alias label: itemLabel.text
3030 property alias iconSource: itemImage.source
Panel/Indicators/DefaultIndicatorWidget2.qml+15−14
@@ -24,7 +24,7 @@ import Unity.Indicators 0.1 as Indicators
2424Indicators.IndicatorWidget {
2525 id: indicatorWidget
2626
27− width: itemRow.width + units.gu(1)
27+ width: itemRow.width + units.gu(0.7)
2828
2929 property alias label: itemLabel.text
3030 property var icons: undefined
@@ -39,28 +39,29 @@ Indicators.IndicatorWidget {
3939 }
4040 spacing: units.gu(0.5)
4141
42− Repeater {
43− model: indicatorWidget.icons
42+ Row {
4443 width: childrenRect.width
4544 anchors {
4645 top: parent.top
4746 bottom: parent.bottom
4847 }
48+ spacing: units.gu(0.7)
4949
50− Image {
51− id: itemImage
52− objectName: "itemImage"
53− visible: source != ""
54− source: modelData
55− height: indicatorWidget.iconSize
56− width: indicatorWidget.iconSize
57− anchors.verticalCenter: parent.verticalCenter
50+ Repeater {
51+ model: indicatorWidget.icons
52+
53+ Image {
54+ id: itemImage
55+ objectName: "itemImage"
56+ visible: source != ""
57+ source: modelData
58+ height: indicatorWidget.iconSize
59+ width: indicatorWidget.iconSize
60+ anchors.verticalCenter: parent.verticalCenter
61+ }
5862 }
5963 }
6064
61− // FIXME : Should us Ubuntu.Icon . results in low res images
62−
63−
6465 Label {
6566 id: itemLabel
6667 objectName: "itemLabel"
Panel/Indicators/NetworkIndicatorWidget.qml+1−1
@@ -24,7 +24,7 @@ import Unity.IndicatorsLegacy 0.1 as Indicators
2424Indicators.IndicatorWidget {
2525 id: indicatorWidget
2626
27− width: networkIcon.width + units.gu(1)
27+ width: networkIcon.width + units.gu(0.7)
2828
2929 property int signalStrength: 0
3030 property int connectionState: Indicators.NetworkConnection.Initial