This commit is contained in:
2025-11-13 19:27:11 -06:00
parent 184e939bb6
commit e1e1b316cf
11 changed files with 513 additions and 108 deletions

View File

@@ -5,12 +5,13 @@ import Quickshell.Services.SystemTray
import Quickshell.Widgets
Item {
width: 10 + rep.count * (2 * lay.spacing + 20)
implicitWidth: 10 + rep.count * (2 * lay.spacing + 20)
height: 30
visible: SystemTray.items.values.length != 0
id: root
property var window: null
required property var window
required property real popupOffset
ClippingWrapperRectangle {
radius: 5
@@ -48,7 +49,7 @@ Item {
if(mouse.button == Qt.LeftButton) {
SystemTray.items.values[index].activate()
} else if(mouse.button == Qt.RightButton) {
SystemTray.items.values[index].display(root.window, root.x + root.parent.x, 40)
SystemTray.items.values[index].display(root.window, popupOffset, 40)
}
}
}