Compare commits

3 Commits
dev-2 ... dev

Author SHA1 Message Date
4e6fd09c11 mpris_player: never show app icon 2023-12-05 16:09:44 +00:00
2595680e07 mpris_player: dont fallback to icon 2023-12-05 16:03:24 +00:00
c02c844715 mpris_player: never set default icon 2023-12-05 15:49:45 +00:00
2 changed files with 1 additions and 14 deletions

View File

@@ -19,8 +19,7 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixel-size">96</property>
<property name="icon-name">audio-x-generic-symbolic</property>
<property name="use-fallback">True</property>
<property name="use-fallback">False</property>
<property name="icon_size">0</property>
</object>
<packing>

View File

@@ -272,18 +272,6 @@ namespace SwayNotificationCenter.Widgets.Mpris {
return;
}
}
// Get the app icon
Icon ? icon = null;
if (desktop_entry is DesktopAppInfo) {
icon = desktop_entry.get_icon ();
}
if (icon != null) {
album_art.set_from_gicon (icon, mpris_config.image_size);
} else {
// Default icon
album_art.set_from_icon_name ("audio-x-generic-symbolic",
mpris_config.image_size);
}
}
private void update_button_shuffle (HashTable<string, Variant> metadata) {