From 717855c62963fcad2f511e180d82add98f4f73e3 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:05:23 +1000 Subject: internal: use Qt.resolvedUrl --- modules/bar/components/TrayItem.qml | 2 +- modules/bar/components/workspaces/SpecialWorkspaces.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/bar/components') diff --git a/modules/bar/components/TrayItem.qml b/modules/bar/components/TrayItem.qml index 1f0a21c..6e7c2c5 100644 --- a/modules/bar/components/TrayItem.qml +++ b/modules/bar/components/TrayItem.qml @@ -30,7 +30,7 @@ MouseArea { let icon = root.modelData.icon; if (icon.includes("?path=")) { const [name, path] = icon.split("?path="); - icon = `file://${path}/${name.slice(name.lastIndexOf("/") + 1)}`; + icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`); } return icon; } diff --git a/modules/bar/components/workspaces/SpecialWorkspaces.qml b/modules/bar/components/workspaces/SpecialWorkspaces.qml index 7bebe41..61ec723 100644 --- a/modules/bar/components/workspaces/SpecialWorkspaces.qml +++ b/modules/bar/components/workspaces/SpecialWorkspaces.qml @@ -22,7 +22,7 @@ Item { required property Item source readonly property Item maskSource: mask - fragmentShader: `file://${Quickshell.shellDir}/assets/shaders/opacitymask.frag.qsb` + fragmentShader: Qt.resolvedUrl(`${Quickshell.shellDir}/assets/shaders/opacitymask.frag.qsb`) } Item { -- cgit v1.2.3-freya