diff --git a/settings/hyprland.nix b/settings/hyprland.nix index c1ae172..aec0dd0 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -1501,14 +1501,7 @@ in } property string appIconName: modelData.properties["application.icon-name"] || "" - - Component.onCompleted: { - let props = modelData.properties; - console.log("Stream:", modelData.name, - "icon-name:", props["application.icon-name"], - "app-name:", props["application.name"], - "iconPath:", appIconName !== "" ? Quickshell.iconPath(appIconName) : "none"); - } + property string appIconPath: appIconName !== "" ? (Quickshell.iconPath(appIconName) || "") : "" Row { width: parent.width @@ -1518,13 +1511,15 @@ in width: 14 height: 14 anchors.verticalCenter: parent.verticalCenter - visible: appIconName !== "" + visible: appIconPath !== "" - IconImage { + Image { id: appStreamIcon anchors.fill: parent - implicitSize: 14 - icon: appIconName + source: appIconPath + sourceSize.width: 14 + sourceSize.height: 14 + smooth: true visible: false } ColorOverlay { @@ -1540,7 +1535,7 @@ in font.family: "FiraMono Nerd Font" font.pixelSize: 11 elide: Text.ElideRight - width: parent.width - (appIconName !== "" ? 20 : 0) + width: parent.width - (appIconPath !== "" ? 20 : 0) } }