forked from Shinonome/dots-hyprland
wbar: (partial) right click menu for start button
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user