summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-06 22:38:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-06 22:38:15 +1000
commit17fb60f216e3f6979a44144677a7d1d8bb9e9fe4 (patch)
treeca79775a5cc31d58ae2f024dc5c905b0c86adc89 /modules/bar/popouts/Content.qml
parentpopouts: transition between popout content (diff)
downloadcaelestia-shell-17fb60f216e3f6979a44144677a7d1d8bb9e9fe4.tar.gz
caelestia-shell-17fb60f216e3f6979a44144677a7d1d8bb9e9fe4.tar.bz2
caelestia-shell-17fb60f216e3f6979a44144677a7d1d8bb9e9fe4.zip
feat: tray item menus
Diffstat (limited to 'modules/bar/popouts/Content.qml')
-rw-r--r--modules/bar/popouts/Content.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml
index 1f9da27..6f0ec70 100644
--- a/modules/bar/popouts/Content.qml
+++ b/modules/bar/popouts/Content.qml
@@ -1,6 +1,9 @@
+pragma ComponentBehavior: Bound
+
import "root:/services"
import "root:/config"
import Quickshell
+import Quickshell.Services.SystemTray
import QtQuick
Item {
@@ -40,6 +43,24 @@ Item {
name: "battery"
source: "Battery.qml"
}
+
+ Repeater {
+ model: ScriptModel {
+ values: [...SystemTray.items.values]
+ }
+
+ Popout {
+ id: trayMenu
+
+ required property SystemTrayItem modelData
+ required property int index
+
+ name: `traymenu${index}`
+ sourceComponent: TrayMenu {
+ trayItem: trayMenu.modelData.menu
+ }
+ }
+ }
}
Behavior on implicitWidth {
@@ -65,6 +86,7 @@ Item {
opacity: 0
scale: 0.8
+ active: false
asynchronous: true
states: State {