21 import Ubuntu.Components 0.1
22 import Ubuntu.Settings.Components 0.1
27 property int iconSize: units.gu(2)
28 property alias leftLabel: itemLeftLabel.text
29 property alias rightLabel: itemRightLabel.text
30 property var icons: undefined
40 source: (indicatorWidget.icons && (String(indicatorWidget.icons).indexOf(
"indicator-messages-new") != -1)) ? Qt.resolvedUrl(
"IndicatorsLight.qml") :
""
49 horizontalCenter: parent.horizontalCenter
54 width: contentWidth + units.gu(1)
55 objectName:
"leftLabel"
56 color: Theme.palette.selected.backgroundText
60 anchors.verticalCenter: parent.verticalCenter
62 horizontalAlignment: Text.AlignHCenter
72 model: indicatorWidget.icons
75 width: itemImage.width + units.gu(1)
76 anchors { top: parent.top; bottom: parent.bottom }
80 height: indicatorWidget.iconSize
81 anchors.centerIn: parent
83 sets: [
"status",
"actions"]
92 width: contentWidth + units.gu(1)
93 objectName:
"rightLabel"
94 color: Theme.palette.selected.backgroundText
98 anchors.verticalCenter: parent.verticalCenter
100 horizontalAlignment: Text.AlignHCenter
104 onRootActionStateChanged: {
105 if (rootActionState == undefined) {
113 leftLabel = rootActionState.leftLabel ? rootActionState.leftLabel :
"";
114 rightLabel = rootActionState.rightLabel ? rootActionState.rightLabel :
"";
115 icons = rootActionState.icons;
116 enabled = rootActionState.visible;