From acfdb7bac4b182a3c86d312fd853111f483d9e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sat, 23 Jan 2021 08:52:24 +0100 Subject: [PATCH] Use different icon for removing playlist items Make it easier to see if the button will either remove the playlist item or close the app (in case of currently playing item). --- src/playlist.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/playlist.js b/src/playlist.js index a26eaf12..34c1cf24 100644 --- a/src/playlist.js +++ b/src/playlist.js @@ -82,16 +82,21 @@ class ClapperPlaylistWidget extends Gtk.ListBox if(!row) return null; const icon = row.child.get_first_child(); + const button = row.child.get_last_child(); + icon.icon_name = 'open-menu-symbolic'; + button.icon_name = 'list-remove-symbolic'; } _onRowActivated(listBox, row) { const { player } = this.get_ancestor(Gtk.Grid); const icon = row.child.get_first_child(); + const button = row.child.get_last_child(); this.deactivateActiveItem(); icon.icon_name = 'media-playback-start-symbolic'; + button.icon_name = 'edit-delete-symbolic'; this.activeRowId = row.get_index(); player.set_uri(row.uri); @@ -139,7 +144,7 @@ class ClapperPlaylistItem extends Gtk.ListBoxRow halign: Gtk.Align.START, }); const button = new Gtk.Button({ - icon_name: 'edit-delete-symbolic', + icon_name: 'list-remove-symbolic', }); button.add_css_class('flat'); button.add_css_class('circular');