trayicon rendering

This commit is contained in:
Zacharias-Brohn
2025-10-16 16:15:49 +02:00
parent aa7479b466
commit ad43c3c694
2 changed files with 55 additions and 17 deletions
+16
View File
@@ -0,0 +1,16 @@
pragma Singleton
import Quickshell
import Quickshell.Services.Notifications
Singleton {
id: root
function getTrayIcon(id: string, icon: string): string {
if (icon.includes("?path=")) {
const [name, path] = icon.split("?path=");
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
}
return icon;
}
}