on xenial help sign in
MenuItemFactory: use same rules for fake indicators
commit935914b6990eee5c0280528ce198b7e7b9048cec authorMarco Trevisan (Treviño) <mail@3v1n0.net> dateThu 22 Sep 2016, 16:01 (10 years ago) parentf4455d2
1 file changed+4−2
qml/Panel/Indicators/MenuItemFactory.qml+4−2
qml/Panel/Indicators/MenuItemFactory.qml+4−2
@@ -255,14 +255,13 @@ Item {
255255
256256 text: menuData && menuData.label || ""
257257 enabled: menuData && menuData.sensitive || false
258+ backColor: Qt.rgba(1,1,1,0.07)
258259 highlightWhenPressed: false
259260
260261 onTriggered: {
261262 menuModel.activate(menuIndex);
262263 }
263264
264− backColor: Qt.rgba(1,1,1,0.07)
265−
266265 slots: Icon {
267266 source: {
268267 if (menuData) {
@@ -1014,6 +1013,9 @@ Item {
10141013 }
10151014
10161015 function load(modelData, context) {
1016+ if (context.indexOf("fake-") == 0)
1017+ context = context.substring("fake-".length)
1018+
10171019 // tweak indicator-session items
10181020 if (context === "indicator-session") {
10191021 if ((modelData.action === "indicator.logout" || modelData.action === "indicator.suspend" || modelData.action === "indicator.hibernate" ||