diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/SystemTray.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/SystemTray.qml | 37 |
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 @@ | |||
1 | import QtQuick | 1 | import QtQuick |
2 | import QtQuick.Effects | ||
2 | import Quickshell | 3 | import Quickshell |
3 | import Quickshell.Widgets | 4 | import Quickshell.Widgets |
4 | import Quickshell.Services.SystemTray | 5 | import 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 | } |