21 import Ubuntu.Components 0.1
22 import Ubuntu.Settings.Components 0.1
23 import Unity.Indicators 0.1 as Indicators
25 Indicators.IndicatorBase {
28 property int iconSize: units.gu(2)
29 property alias leftLabel: itemLeftLabel.text
30 property alias rightLabel: itemRightLabel.text
31 property var icons: undefined
42 horizontalCenter: parent.horizontalCenter
47 width: contentWidth + units.gu(1)
48 objectName:
"leftLabel"
49 color: Theme.palette.selected.backgroundText
53 anchors.verticalCenter: parent.verticalCenter
55 horizontalAlignment: Text.AlignHCenter
65 model: indicatorWidget.icons
68 width: itemImage.width + units.gu(1)
69 anchors { top: parent.top; bottom: parent.bottom }
73 height: indicatorWidget.iconSize
74 anchors.centerIn: parent
76 sets: [
"status",
"actions"]
85 width: contentWidth + units.gu(1)
86 objectName:
"rightLabel"
87 color: Theme.palette.selected.backgroundText
91 anchors.verticalCenter: parent.verticalCenter
93 horizontalAlignment: Text.AlignHCenter
97 onRootActionStateChanged: {
98 if (rootActionState == undefined) {
106 leftLabel = rootActionState.leftLabel ? rootActionState.leftLabel :
"";
107 rightLabel = rootActionState.rightLabel ? rootActionState.rightLabel :
"";
108 icons = rootActionState.icons;
109 enabled = rootActionState.visible;