From 16dcc078590c3013fd1134b927dd289a6f1610e9 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 1 May 2025 14:35:53 +1000 Subject: bar: fix tray icons --- modules/bar/components/TrayItem.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules') 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 } -- cgit v1.2.3-freya