new popup system

This commit is contained in:
kossLAN 2025-08-10 21:12:41 -04:00
parent d32bedda31
commit a416887d3b
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
5 changed files with 138 additions and 255 deletions

View file

@ -24,8 +24,7 @@ Variants {
right: true
}
PopupHandler {
id: popupHandler
readonly property Popup popup: Popup {
bar: root
}
@ -43,6 +42,7 @@ Variants {
spacing: 15
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignLeft
Workspaces {
screen: root.screen
@ -64,40 +64,10 @@ Variants {
SysTray {
id: sysTray
popup: popupHandler
bar: root
Layout.fillHeight: true
}
PopupItem {
id: test
Layout.preferredWidth: 20
Layout.fillHeight: true
onClicked: {
popupHandler.set(test);
}
menu: Rectangle {
implicitWidth: 100
implicitHeight: 100
}
}
PopupItem {
id: test2
Layout.preferredWidth: 20
Layout.fillHeight: true
onClicked: {
popupHandler.set(test2);
}
menu: Rectangle {
implicitWidth: 200
implicitHeight: 200
}
}
// VolumeIndicator {
// id: volumeIndicator
// popup: root.popup