@@ -251,34 +251,18 @@ Item {
251 onTriggered: {
251 onTriggered: {
252 menuModel.activate(menuIndex);
252 menuModel.activate(menuIndex);
255− // FIXME : At the moment, the indicators aren't using
256− // com.canonical.indicators.link for settings menu. Need to fudge it.
257− property bool settingsMenu: menuData && menuData.action.indexOf("settings") > -1 || false
258− backColor: settingsMenu ? Qt.rgba(1,1,1,0.07) : "transparent"
259− component: settingsMenu ? buttonForSettings : undefined
261− id: buttonForSettings
266− color: theme.palette.normal.backgroundText
272 Component {
257 Component {
273 id: linkMenu;
258 id: linkMenu;
275− Menus.StandardMenu {
260+ Menus.BaseLayoutMenu {
276 objectName: "linkMenu"
261 objectName: "linkMenu"
277 property QtObject menuData: null
262 property QtObject menuData: null
278 property int menuIndex: -1
263 property int menuIndex: -1
280 text: menuData && menuData.label || ""
265 text: menuData && menuData.label || ""
281− iconSource: menuData && menuData.icon || ""
282 enabled: menuData && menuData.sensitive || false
266 enabled: menuData && menuData.sensitive || false
283 highlightWhenPressed: false
267 highlightWhenPressed: false
@@ -288,15 +272,21 @@ Item {
289 backColor: Qt.rgba(1,1,1,0.07)
273 backColor: Qt.rgba(1,1,1,0.07)
291− component: menuData.icon ? icon : undefined
294− Icon {
275+ slots: Icon {
295− source: menuData.icon
278+ if (menuData.icon && menuData.icon != "") {
296− height: units.gu(3)
279+ return menuData.icon
297− width: height
280+ } else if (menuData.action.indexOf("settings") > -1) {
298− color: theme.palette.normal.backgroundText
281+ return "image://theme/settings"
288+ color: theme.palette.normal.backgroundText
289+ SlotsLayout.position: SlotsLayout.Trailing
@@ -1073,6 +1063,11 @@ Item {
1073 if (modelData.isSeparator) {
1063 if (modelData.isSeparator) {
1074 return separatorMenu;
1064 return separatorMenu;
1066+ if (modelData.action !== undefined && modelData.action.indexOf("settings") > -1) {
1067+ // FIXME : At the moment, the indicators aren't using
1068+ // com.canonical.indicators.link for settings menu. Need to fudge it.
1076 return standardMenu;
1071 return standardMenu;