summaryrefslogtreecommitdiff
path: root/modules/bar/components/TrayItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/components/TrayItem.qml')
-rw-r--r--modules/bar/components/TrayItem.qml10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/bar/components/TrayItem.qml b/modules/bar/components/TrayItem.qml
index 6e7c2c5..9911907 100644
--- a/modules/bar/components/TrayItem.qml
+++ b/modules/bar/components/TrayItem.qml
@@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import qs.components.effects
import qs.services
import qs.config
+import qs.utils
import Quickshell.Services.SystemTray
import QtQuick
@@ -26,14 +27,7 @@ MouseArea {
id: icon
anchors.fill: parent
- source: {
- let icon = root.modelData.icon;
- if (icon.includes("?path=")) {
- const [name, path] = icon.split("?path=");
- icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
- }
- return icon;
- }
+ source: Icons.getTrayIcon(root.modelData.id, root.modelData.icon)
colour: Colours.palette.m3secondary
layer.enabled: Config.bar.tray.recolour
}