summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/SystemTray.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-09-10 16:26:09 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-09-10 16:26:09 +0200
commitd1261f6586ab5d91e81c04ca0f586e35ee6fb8a6 (patch)
tree06d8f7132ea2522466b6aa54701f7edcdf3d884f /accounts/gkleen@sif/shell/quickshell/SystemTray.qml
parentd20393e077b8d97b18f4a224ddcb20caf6dac23b (diff)
downloadnixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar
nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar.gz
nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar.bz2
nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar.xz
nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.zip
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/SystemTray.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/SystemTray.qml28
1 files changed, 19 insertions, 9 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml
index 956f3995..6f70be29 100644
--- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml
+++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml
@@ -47,7 +47,7 @@ Item {
47 return "" 47 return ""
48 } 48 }
49 49
50 width: 16 50 width: icon.width + 6
51 height: parent.height 51 height: parent.height
52 anchors.verticalCenter: parent.verticalCenter 52 anchors.verticalCenter: parent.verticalCenter
53 53
@@ -83,14 +83,24 @@ Item {
83 } 83 }
84 } 84 }
85 85
86 IconImage { 86 Rectangle {
87 anchors.centerIn: parent 87 anchors.fill: parent
88 width: parent.width 88 color: {
89 height: parent.width 89 if (trayItemArea.containsMouse)
90 source: trayItemWrapper.iconSource 90 return "#33808080";
91 asynchronous: true 91 return "transparent";
92 smooth: true 92 }
93 mipmap: true 93
94 IconImage {
95 id: icon
96
97 anchors.centerIn: parent
98 implicitSize: 16
99 source: trayItemWrapper.iconSource
100 asynchronous: true
101 smooth: true
102 mipmap: true
103 }
94 } 104 }
95 } 105 }
96 106