wbar: (partial) right click menu for start button

This commit is contained in:
end-4
2025-11-15 08:27:31 +01:00
parent 4e86ec9fe9
commit d0de047db0
9 changed files with 148 additions and 8 deletions
@@ -37,7 +37,7 @@ AppButton {
}
}
onMiddleClickAction: {
middleClickAction: () => {
if (root.desktopEntry) {
desktopEntry.execute()
}
@@ -16,7 +16,7 @@ PopupWindow {
property Item anchorItem
//////////////////// Functions ////////////////////
function close() {
function close() { // Closing doesn't animate, not sure if they're just lazy or it's intentional
marginBehavior.enabled = false;
root.visible = false;
}
@@ -17,6 +17,10 @@ MouseArea {
previewPopup.show(appEntry, button);
}
function showContextMenu(appEntry, button) {
// TODO
}
// Apps row
RowLayout {
id: row
@@ -36,6 +40,10 @@ MouseArea {
onHoverPreviewRequested: {
root.showPreviewPopup(appEntry, this)
}
altAction: () => {
root.showContextMenu(appEntry, this)
}
}
}
}
@@ -46,4 +54,6 @@ MouseArea {
tasksHovered: root.containsMouse
anchor.window: root.QsWindow.window
}
}