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 2 additions and 15 deletions

View File

@@ -18,9 +18,8 @@
<object class="GtkImage" id="album_art"> <object class="GtkImage" id="album_art">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="pixel-size">48</property> <property name="pixel-size">96</property>
<property name="icon-name">audio-x-generic-symbolic</property> <property name="use-fallback">False</property>
<property name="use-fallback">True</property>
<property name="icon_size">0</property> <property name="icon_size">0</property>
</object> </object>
<packing> <packing>

View File

@@ -272,18 +272,6 @@ namespace SwayNotificationCenter.Widgets.Mpris {
return; 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) { private void update_button_shuffle (HashTable<string, Variant> metadata) {