Skip to content

Commit

Permalink
feat: open widget configuration from right click menu on any widget
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbocanegra committed Nov 3, 2024
1 parent ab7fa2c commit e4c88d3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,13 @@ PlasmoidItem {
}
}

PlasmaCore.Action {
id: configureAction
text: plasmoid.internalAction("configure").text
icon.name: 'configure'
onTriggered: plasmoid.internalAction("configure").trigger()
}

function showWidgets(panelLayout) {
console.error("showWidgets()")
for (var i in panelLayout.children) {
Expand All @@ -1307,7 +1314,9 @@ PlasmoidItem {
if (!child.applet?.plasmoid?.pluginName) continue
// if (Utils.getBgManaged(child)) continue
// console.error(child.applet?.plasmoid?.pluginName)
// Utils.dumpProps(child)
if (child.applet.plasmoid.pluginName !== "luisbocanegra.panel.colorizer") {
child.applet.plasmoid.contextualActions.push(configureAction)
}
const isTray = child.applet.plasmoid.pluginName === "org.kde.plasma.systemtray"
if (isTray) trayIndex = i
const bgItem = Utils.getBgManaged(child)
Expand Down

0 comments on commit e4c88d3

Please sign in to comment.