From 3ee0ee73d5788b867e83aade7d7762653045fdcd Mon Sep 17 00:00:00 2001 From: coderkun Date: Sun, 26 Nov 2023 18:10:43 +0100 Subject: [PATCH] =?UTF-8?q?fixup!=20Port=20UI=20to=20GTK=E2=80=AF4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/gtk.css | 9 +++- data/ui/playlist-panel.ui | 36 +++------------ data/ui/window.ui | 42 ++++++++++-------- src/application.py | 1 + src/playlistpanel.py | 92 +++++++++++++++------------------------ src/window.py | 14 +++--- 6 files changed, 82 insertions(+), 112 deletions(-) diff --git a/data/gtk.css b/data/gtk.css index 3a04426..1b361de 100644 --- a/data/gtk.css +++ b/data/gtk.css @@ -49,5 +49,12 @@ actionbar { } gridview child { - padding: 10px; + padding: 1px; +} +gridview.selection child { + opacity: 0.5; +} +gridview.selection child:hover, +gridview.selection child:selected { + opacity: 1; } diff --git a/data/ui/playlist-panel.ui b/data/ui/playlist-panel.ui index e3a5e9f..fc4c094 100644 --- a/data/ui/playlist-panel.ui +++ b/data/ui/playlist-panel.ui @@ -12,9 +12,7 @@ True True Select multiple albums - object-select-symbolic @@ -28,9 +26,7 @@ True True Clear the playlist - True @@ -43,7 +39,7 @@