summaryrefslogtreecommitdiff
path: root/modules/bar
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-01 14:35:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-01 14:35:53 +1000
commit16dcc078590c3013fd1134b927dd289a6f1610e9 (patch)
treeb0a7bf740a7b0695d0364e32a87aa11e33058eb3 /modules/bar
parentfeat: get networks (diff)
downloadcaelestia-shell-16dcc078590c3013fd1134b927dd289a6f1610e9.tar.gz
caelestia-shell-16dcc078590c3013fd1134b927dd289a6f1610e9.tar.bz2
caelestia-shell-16dcc078590c3013fd1134b927dd289a6f1610e9.zip
bar: fix tray icons
Diffstat (limited to 'modules/bar')
-rw-r--r--modules/bar/components/TrayItem.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/bar/components/TrayItem.qml b/modules/bar/components/TrayItem.qml
index 6be2904..b050e5d 100644
--- a/modules/bar/components/TrayItem.qml
+++ b/modules/bar/components/TrayItem.qml
@@ -34,7 +34,15 @@ MouseArea {
id: icon
visible: !BarConfig.tray.recolourIcons
- source: root.modelData.icon
+ source: {
+ let icon = root.modelData.icon;
+ if (icon.includes("?path=")) {
+ const [name, path] = icon.split("?path=");
+ icon = `file://${path}/${name.slice(name.lastIndexOf("/") + 1)}.png`;
+ }
+ return icon;
+ }
+ asynchronous: true
anchors.fill: parent
}