mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
volume mixer: guess icon also by node name
This commit is contained in:
parent
9cea880569
commit
440438ef33
1 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,10 @@ Item {
|
|||
sourceSize.width: size
|
||||
sourceSize.height: size
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue