From ae7c6deac94a71ba8dced3ed3c8ec72f58317df7 Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 27 May 2026 09:41:41 +0100 Subject: [PATCH] quickshell: add IconTheme pragma and file:// prefix for app icons Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index aec0dd0..e29bf4d 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -556,6 +556,7 @@ in onChange = qsRestart; text = '' //@ pragma UseQApplication + //@ pragma IconTheme Papirus-Dark import Quickshell import Quickshell.Services.Notifications import QtQuick @@ -1501,7 +1502,11 @@ in } property string appIconName: modelData.properties["application.icon-name"] || "" - property string appIconPath: appIconName !== "" ? (Quickshell.iconPath(appIconName) || "") : "" + property string appIconPath: { + if (appIconName === "") return ""; + let p = Quickshell.iconPath(appIconName); + return p ? "file://" + p : ""; + } Row { width: parent.width