From 75b99e5820f0f28f5cfb52507c9fb20f15b454fb Mon Sep 17 00:00:00 2001 From: coderkun Date: Sun, 8 Jan 2023 18:20:30 +0100 Subject: [PATCH] =?UTF-8?q?Port=20UI=20to=20GTK=E2=80=AF4=20(close=20#85)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/gtk.css | 53 +-- data/ui/album-headerbar.ui | 82 ++-- data/ui/connection-panel.ui | 213 +++------- data/ui/cover-panel.ui | 176 ++++---- data/ui/cover-toolbar.ui | 33 -- data/ui/gtk.menu.ui | 75 ---- data/ui/info-dialog.ui | 46 --- data/ui/library-panel.ui | 549 +++++++++++++------------ data/ui/library-toolbar.ui | 248 ------------ data/ui/playlist-panel.ui | 306 +++++++------- data/ui/playlist-toolbar.ui | 55 --- data/ui/server-panel.ui | 581 +++++++++------------------ data/ui/server-toolbar.ui | 14 - data/ui/shortcuts-dialog.ui | 22 +- data/ui/window.ui | 275 +++---------- data/xyz.suruatoel.mcg.gresource.xml | 6 - po/POTFILES | 8 - po/de.mo | Bin 4246 -> 3448 bytes po/de.po | 431 ++++++++------------ po/en.mo | Bin 4042 -> 3284 bytes po/en.po | 431 ++++++++------------ po/mcg.pot | 346 +++++----------- src/albumheaderbar.py | 7 +- src/application.py | 64 ++- src/client.py | 23 +- src/connectionpanel.py | 71 ++-- src/coverpanel.py | 117 +++--- src/infodialog.py | 15 - src/librarypanel.py | 526 +++++++++--------------- src/main.py | 2 - src/meson.build | 1 - src/playlistpanel.py | 189 ++++----- src/serverpanel.py | 29 +- src/shortcutsdialog.py | 4 +- src/utils.py | 48 ++- src/window.py | 205 ++++------ 36 files changed, 1848 insertions(+), 3403 deletions(-) delete mode 100644 data/ui/cover-toolbar.ui delete mode 100644 data/ui/gtk.menu.ui delete mode 100644 data/ui/info-dialog.ui delete mode 100644 data/ui/library-toolbar.ui delete mode 100644 data/ui/playlist-toolbar.ui delete mode 100644 data/ui/server-toolbar.ui delete mode 100644 src/infodialog.py diff --git a/data/gtk.css b/data/gtk.css index 469b262..1b361de 100644 --- a/data/gtk.css +++ b/data/gtk.css @@ -1,8 +1,20 @@ -.bg-texture { +#content_stack { box-shadow:inset 4px 4px 10px rgba(0,0,0,0.3); background-image:url('noise-texture.png'); } +#port_spinner { + background:none; + margin-top:-13px; +} +#port_spinner text { + padding-left: 0; +} + +#server_stack_sidebar { + background-color:alpha(@theme_bg_color, 1); +} + .no-bg { background:none; } @@ -18,13 +30,17 @@ font-weight:bold; } -revealer.sidebar > * { - background-color:alpha(@theme_bg_color, 0.8); - box-shadow:0 0 10px @theme_bg_color; - margin-left:20px +window.fullscreen #cover_box { + background: black; } -revealer.sidebar scale mark indicator { +#cover_info_revealer { + background-color:alpha(@theme_bg_color, 0.8); + box-shadow:0 0 10px @theme_bg_color; + margin-left:20px; +} + +#cover_info_revealer scale mark indicator { margin-right:5px; } @@ -32,24 +48,13 @@ actionbar { background-color:@theme_unfocused_bg_color; } -/* Icon View in regular mode */ -iconview.view:selected, -iconview.view:selected:focus { - background-color:@theme_selected_bg_color; +gridview child { + padding: 1px; } -iconview.view:hover { - -gtk-icon-effect:highlight; +gridview.selection child { + opacity: 0.5; } - -/* Icon View in selection mode */ -iconview.view.selection { - -gtk-icon-effect:dim; -} -iconview.view.selection:selected, -iconview.view.selection:selected:focus { - background-color:@theme_selected_bg_color; - -gtk-icon-effect:highlight; -} -iconview.view.selection:hover { - -gtk-icon-effect:none; +gridview.selection child:hover, +gridview.selection child:selected { + opacity: 1; } diff --git a/data/ui/album-headerbar.ui b/data/ui/album-headerbar.ui index 76ade01..bda26a8 100644 --- a/data/ui/album-headerbar.ui +++ b/data/ui/album-headerbar.ui @@ -1,58 +1,38 @@ - - -