mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 03:47:23 +01:00
welcome page: Use correct icon name
This commit is contained in:
parent
6b71701b81
commit
3be2e4745c
2 changed files with 12 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ template $MusicusWelcomePage : Adw.NavigationPage {
|
|||
}
|
||||
}
|
||||
|
||||
Adw.StatusPage {
|
||||
Adw.StatusPage status_page {
|
||||
icon-name: "de.johrpan.Musicus";
|
||||
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.");
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
use crate::config;
|
||||
|
||||
use adw::subclass::{navigation_page::NavigationPageImpl, prelude::*};
|
||||
use gettextrs::gettext;
|
||||
use gtk::{gio, glib, glib::subclass::Signal, prelude::*};
|
||||
|
|
@ -8,7 +10,10 @@ mod imp {
|
|||
|
||||
#[derive(Debug, Default, gtk::CompositeTemplate)]
|
||||
#[template(file = "data/ui/welcome_page.blp")]
|
||||
pub struct MusicusWelcomePage {}
|
||||
pub struct MusicusWelcomePage {
|
||||
#[template_child]
|
||||
pub status_page: TemplateChild<adw::StatusPage>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
impl ObjectSubclass for MusicusWelcomePage {
|
||||
|
|
@ -36,6 +41,11 @@ mod imp {
|
|||
|
||||
SIGNALS.as_ref()
|
||||
}
|
||||
|
||||
fn constructed(&self) {
|
||||
self.parent_constructed();
|
||||
self.status_page.set_icon_name(Some(config::APP_ID));
|
||||
}
|
||||
}
|
||||
|
||||
impl WidgetImpl for MusicusWelcomePage {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue