From f8d18caf5d0bce6da5b5f30de8f69238c331a323 Mon Sep 17 00:00:00 2001 From: Olli Date: Fri, 14 Aug 2026 10:36:45 +0200 Subject: [PATCH] fixup! Add GTK application implementation --- data/gtk.css | 1 - data/icons/meson.build | 7 --- data/xyz.suruatoel.mcg.gresource.xml | 15 ----- data/xyz.suruatoel.mcg.gschema.xml | 63 ------------------- .../scalable/apps => }/xyz.suruatoel.mcg.svg | 0 internal/gui/application.go | 2 +- 6 files changed, 1 insertion(+), 87 deletions(-) delete mode 100644 data/icons/meson.build delete mode 100644 data/xyz.suruatoel.mcg.gresource.xml delete mode 100644 data/xyz.suruatoel.mcg.gschema.xml rename data/{icons/hicolor/scalable/apps => }/xyz.suruatoel.mcg.svg (100%) diff --git a/data/gtk.css b/data/gtk.css index 4b22054..aa3357b 100644 --- a/data/gtk.css +++ b/data/gtk.css @@ -1,6 +1,5 @@ #content_stack { box-shadow:inset 4px 4px 10px rgba(0,0,0,0.3); - background-image:url('noise-texture.png'); } #port_spinner { diff --git a/data/icons/meson.build b/data/icons/meson.build deleted file mode 100644 index 20bdb7c..0000000 --- a/data/icons/meson.build +++ /dev/null @@ -1,7 +0,0 @@ -application_id = 'xyz.suruatoel.mcg' - -scalable_dir = join_paths('hicolor', 'scalable', 'apps') -install_data( - join_paths(scalable_dir, ('@0@.svg').format(application_id)), - install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir) -) diff --git a/data/xyz.suruatoel.mcg.gresource.xml b/data/xyz.suruatoel.mcg.gresource.xml deleted file mode 100644 index 02141b3..0000000 --- a/data/xyz.suruatoel.mcg.gresource.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - gtk.css - noise-texture.png - ui/window.ui - ui/shortcuts-dialog.ui - ui/connection-panel.ui - ui/album-headerbar.ui - ui/server-panel.ui - ui/cover-panel.ui - ui/playlist-panel.ui - ui/library-panel.ui - - diff --git a/data/xyz.suruatoel.mcg.gschema.xml b/data/xyz.suruatoel.mcg.gschema.xml deleted file mode 100644 index 9f50878..0000000 --- a/data/xyz.suruatoel.mcg.gschema.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - 'localhost' - MPD host - MPD host to connect to - - - 6600 - MPD port - MPD port to connect to - - - false - Connection state - State of last connection - - - 800 - Window width - The window width in pixels. - - - 600 - Window height - The window height in pixels. - - - false - Window maximized - Whether or not the window is in maximized state. - - - - 1 - Last selected panel - The index of the last selected panel. - - - - 150 - Size of library items - The size of items displayed in the library. - - - 'year' - Sort criterium for library items - The sort criterium of items displayed in the library. - - - true - Sort type for library items - The sort type of items displayed in the library. - - - diff --git a/data/icons/hicolor/scalable/apps/xyz.suruatoel.mcg.svg b/data/xyz.suruatoel.mcg.svg similarity index 100% rename from data/icons/hicolor/scalable/apps/xyz.suruatoel.mcg.svg rename to data/xyz.suruatoel.mcg.svg diff --git a/internal/gui/application.go b/internal/gui/application.go index 97ca6f9..66ad526 100644 --- a/internal/gui/application.go +++ b/internal/gui/application.go @@ -103,7 +103,7 @@ func (a *Application) showAboutDialog() { func (a *Application) newAboutDialog() *adw.AboutDialog { dialog := adw.NewAboutDialog() dialog.SetApplicationName("CoverGrid") - dialog.SetApplicationIcon("xyz.suruatoel.covergrid") + dialog.SetApplicationIcon("xyz.suruatoel.mcg") dialog.SetVersion(a.Version()) dialog.SetComments(i18n.T("CoverGrid is a client for the Music Player Daemon, focusing on albums instead of single tracks.")) dialog.SetWebsite("https://www.suruatoel.xyz/codes/covergrid")