diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 8f3b4ac..c1ae172 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -1500,11 +1500,14 @@ in objects: [modelData] } - property string appIconPath: { - let icon = modelData.properties["application.icon-name"] || ""; - if (icon === "") icon = (modelData.properties["application.name"] || modelData.name || "").toLowerCase(); - if (icon === "") return ""; - return Quickshell.iconPath(icon, true) || ""; + 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"); } Row { @@ -1515,15 +1518,13 @@ in width: 14 height: 14 anchors.verticalCenter: parent.verticalCenter - visible: appIconPath !== "" + visible: appIconName !== "" - Image { + IconImage { id: appStreamIcon anchors.fill: parent - source: appIconPath - sourceSize.width: 14 - sourceSize.height: 14 - smooth: true + implicitSize: 14 + icon: appIconName visible: false } ColorOverlay { @@ -1539,7 +1540,7 @@ in font.family: "FiraMono Nerd Font" font.pixelSize: 11 elide: Text.ElideRight - width: parent.width - (appIconPath !== "" ? 20 : 0) + width: parent.width - (appIconName !== "" ? 20 : 0) } }