From 538e559f8fba4792bea1c8fce93b83804bb28874 Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Sun, 23 Mar 2025 09:04:05 +0100 Subject: [PATCH] Refresh welcome page --- data/res/de.johrpan.Musicus.gresource.xml.in | 1 + data/res/icons/scalable/actions/music-note-symbolic.svg | 2 ++ data/ui/welcome_page.blp | 4 ++-- src/welcome_page.rs | 7 ------- 4 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 data/res/icons/scalable/actions/music-note-symbolic.svg diff --git a/data/res/de.johrpan.Musicus.gresource.xml.in b/data/res/de.johrpan.Musicus.gresource.xml.in index de0838a..fdb906f 100644 --- a/data/res/de.johrpan.Musicus.gresource.xml.in +++ b/data/res/de.johrpan.Musicus.gresource.xml.in @@ -1,6 +1,7 @@ + icons/scalable/actions/music-note-symbolic.svg icons/scalable/actions/playlist-symbolic.svg style.css diff --git a/data/res/icons/scalable/actions/music-note-symbolic.svg b/data/res/icons/scalable/actions/music-note-symbolic.svg new file mode 100644 index 0000000..1a99647 --- /dev/null +++ b/data/res/icons/scalable/actions/music-note-symbolic.svg @@ -0,0 +1,2 @@ + + diff --git a/data/ui/welcome_page.blp b/data/ui/welcome_page.blp index d3eefc4..0e1c1a4 100644 --- a/data/ui/welcome_page.blp +++ b/data/ui/welcome_page.blp @@ -16,9 +16,9 @@ template $MusicusWelcomePage : Adw.NavigationPage { } Adw.StatusPage status_page { - icon-name: "de.johrpan.Musicus"; + icon-name: "music-note-symbolic"; title: _("Welcome to Musicus"); - description: _("Get started by choosing where to store your music library. Is this your first time using Musicus? If so, create a new empty folder for your library. Musicus will use this location to manage your recordings. You can also select a folder that already contains a music library created by Musicus."); + description: _("Get started by choosing where you want to store your music library. Are you using Musicus for the first time? If so, create a new empty folder for your library. If you wish, Musicus will automatically download some music for you."); child: Gtk.Button { styles ["suggested-action", "pill"] halign: center; diff --git a/src/welcome_page.rs b/src/welcome_page.rs index d64fe13..db114c9 100644 --- a/src/welcome_page.rs +++ b/src/welcome_page.rs @@ -3,8 +3,6 @@ use gettextrs::gettext; use gtk::{gio, glib, glib::subclass::Signal, prelude::*}; use once_cell::sync::Lazy; -use crate::config; - mod imp { use super::*; @@ -41,11 +39,6 @@ mod imp { SIGNALS.as_ref() } - - fn constructed(&self) { - self.parent_constructed(); - self.status_page.set_icon_name(Some(config::APP_ID)); - } } impl WidgetImpl for WelcomePage {}