summaryrefslogtreecommitdiff
path: root/modules/bar/components
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/components')
-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
}