summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-09-11 23:57:10 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-09-11 23:57:10 +0200
commit5f6ddc16aed05c4c893518b8391ef5200549d03a (patch)
tree52e2440afa16e5be2d4a1770754c98b46e3a54e8 /accounts
parenta754f991eb153c11345dfae8b88946c384439dde (diff)
downloadnixos-5f6ddc16aed05c4c893518b8391ef5200549d03a.tar
nixos-5f6ddc16aed05c4c893518b8391ef5200549d03a.tar.gz
nixos-5f6ddc16aed05c4c893518b8391ef5200549d03a.tar.bz2
nixos-5f6ddc16aed05c4c893518b8391ef5200549d03a.tar.xz
nixos-5f6ddc16aed05c4c893518b8391ef5200549d03a.zip
...
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/SystemTray.qml37
1 files changed, 29 insertions, 8 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml
index 6f70be29..351e74ee 100644
--- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml
+++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml
@@ -1,4 +1,5 @@
1import QtQuick 1import QtQuick
2import QtQuick.Effects
2import Quickshell 3import Quickshell
3import Quickshell.Widgets 4import Quickshell.Widgets
4import Quickshell.Services.SystemTray 5import Quickshell.Services.SystemTray
@@ -28,6 +29,9 @@ Item {
28 delegate: Item { 29 delegate: Item {
29 id: trayItemWrapper 30 id: trayItemWrapper
30 31
32 required property var modelData
33 required property int index
34
31 property var trayItem: modelData 35 property var trayItem: modelData
32 property string iconSource: { 36 property string iconSource: {
33 let icon = trayItem && trayItem.icon 37 let icon = trayItem && trayItem.icon
@@ -91,15 +95,32 @@ Item {
91 return "transparent"; 95 return "transparent";
92 } 96 }
93 97
94 IconImage { 98 Item {
95 id: icon 99 anchors.fill: parent
100
101 layer.enabled: true
102 layer.effect: MultiEffect {
103 colorization: 1
104 colorizationColor: "#555"
105 }
106
107 IconImage {
108 id: icon
96 109
97 anchors.centerIn: parent 110 anchors.centerIn: parent
98 implicitSize: 16 111 implicitSize: 16
99 source: trayItemWrapper.iconSource 112 source: trayItemWrapper.iconSource
100 asynchronous: true 113 asynchronous: true
101 smooth: true 114 smooth: true
102 mipmap: true 115 mipmap: true
116
117 layer.enabled: true
118 layer.effect: MultiEffect {
119 id: effect
120
121 brightness: 1
122 }
123 }
103 } 124 }
104 } 125 }
105 } 126 }