forked from Shinonome/dots-hyprland
volume mixer: guess icon also by node name
This commit is contained in:
@@ -47,7 +47,10 @@ Item {
|
|||||||
sourceSize.width: size
|
sourceSize.width: size
|
||||||
sourceSize.height: size
|
sourceSize.height: size
|
||||||
source: {
|
source: {
|
||||||
const icon = AppSearch.guessIcon(root.node.properties["application.icon-name"]);
|
let icon;
|
||||||
|
icon = AppSearch.guessIcon(root.node.properties["application.icon-name"]);
|
||||||
|
if (AppSearch.iconExists(icon)) return Quickshell.iconPath(icon, "image-missing");
|
||||||
|
icon = AppSearch.guessIcon(root.node.properties["node.name"]);
|
||||||
return Quickshell.iconPath(icon, "image-missing");
|
return Quickshell.iconPath(icon, "image-missing");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user