diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-14 17:18:24 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-14 17:18:24 +1000 |
| commit | a02d774b0a671c2c20d067f0b1b393ac4dfc6204 (patch) | |
| tree | 4de930365ed7d1ba5bdbf58a52277cd2a41d9809 /modules/bar/components/TrayItem.qml | |
| parent | internal: better colourisation (diff) | |
| download | caelestia-shell-a02d774b0a671c2c20d067f0b1b393ac4dfc6204.tar.gz caelestia-shell-a02d774b0a671c2c20d067f0b1b393ac4dfc6204.tar.bz2 caelestia-shell-a02d774b0a671c2c20d067f0b1b393ac4dfc6204.zip | |
config: add config for bar tray recolour & bg
Closes #337
Diffstat (limited to 'modules/bar/components/TrayItem.qml')
| -rw-r--r-- | modules/bar/components/TrayItem.qml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/bar/components/TrayItem.qml b/modules/bar/components/TrayItem.qml index 3b95949..1f0a21c 100644 --- a/modules/bar/components/TrayItem.qml +++ b/modules/bar/components/TrayItem.qml @@ -1,7 +1,8 @@ pragma ComponentBehavior: Bound +import qs.components.effects +import qs.services import qs.config -import Quickshell.Widgets import Quickshell.Services.SystemTray import QtQuick @@ -21,9 +22,10 @@ MouseArea { modelData.secondaryActivate(); } - IconImage { + ColouredIcon { id: icon + anchors.fill: parent source: { let icon = root.modelData.icon; if (icon.includes("?path=")) { @@ -32,7 +34,7 @@ MouseArea { } return icon; } - asynchronous: true - anchors.fill: parent + colour: Colours.palette.m3secondary + layer.enabled: Config.bar.tray.recolour } } |