diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-01 14:05:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-01 14:05:25 +0200 |
commit | c9b4c6834e390f051e3137a6a45882ea8608ee9d (patch) | |
tree | 98229a1b688b09653fbd82e45a9471e1b033233d /accounts/gkleen@sif/shell/quickshell/SystemTray.qml | |
parent | 466ce70f96f8bdde32260f6951c5cbb62cfc02a7 (diff) | |
download | nixos-c9b4c6834e390f051e3137a6a45882ea8608ee9d.tar nixos-c9b4c6834e390f051e3137a6a45882ea8608ee9d.tar.gz nixos-c9b4c6834e390f051e3137a6a45882ea8608ee9d.tar.bz2 nixos-c9b4c6834e390f051e3137a6a45882ea8608ee9d.tar.xz nixos-c9b4c6834e390f051e3137a6a45882ea8608ee9d.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/SystemTray.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/SystemTray.qml | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml index ba678138..024026a3 100644 --- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml +++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml | |||
@@ -24,6 +24,8 @@ Item { | |||
24 | } | 24 | } |
25 | 25 | ||
26 | delegate: Item { | 26 | delegate: Item { |
27 | id: trayItemWrapper | ||
28 | |||
27 | property var trayItem: modelData | 29 | property var trayItem: modelData |
28 | property string iconSource: { | 30 | property string iconSource: { |
29 | let icon = trayItem && trayItem.icon | 31 | let icon = trayItem && trayItem.icon |
@@ -47,17 +49,7 @@ Item { | |||
47 | height: parent.height | 49 | height: parent.height |
48 | anchors.verticalCenter: parent.verticalCenter | 50 | anchors.verticalCenter: parent.verticalCenter |
49 | 51 | ||
50 | IconImage { | 52 | WrapperMouseArea { |
51 | anchors.centerIn: parent | ||
52 | width: parent.width | ||
53 | height: parent.width | ||
54 | source: parent.iconSource | ||
55 | asynchronous: true | ||
56 | smooth: true | ||
57 | mipmap: true | ||
58 | } | ||
59 | |||
60 | MouseArea { | ||
61 | id: trayItemArea | 53 | id: trayItemArea |
62 | 54 | ||
63 | anchors.fill: parent | 55 | anchors.fill: parent |
@@ -88,6 +80,16 @@ Item { | |||
88 | menuAnchor.open() | 80 | menuAnchor.open() |
89 | } | 81 | } |
90 | } | 82 | } |
83 | |||
84 | IconImage { | ||
85 | anchors.centerIn: parent | ||
86 | width: parent.width | ||
87 | height: parent.width | ||
88 | source: trayItemWrapper.iconSource | ||
89 | asynchronous: true | ||
90 | smooth: true | ||
91 | mipmap: true | ||
92 | } | ||
91 | } | 93 | } |
92 | 94 | ||
93 | PopupWindow { | 95 | PopupWindow { |