edited the about page

This commit is contained in:
ALEZ-DEV 2025-03-14 19:38:31 +01:00
parent c84520212c
commit ce50bf00e4

View File

@ -1,7 +1,8 @@
use libadwaita::prelude::PreferencesPageExt;
use libadwaita::prelude::{PreferencesPageExt, PreferencesRowExt};
use relm4::{
gtk::prelude::WidgetExt,
gtk::prelude::{OrientableExt, WidgetExt},
prelude::{adw, gtk, AsyncComponentParts, SimpleAsyncComponent},
RelmWidgetExt,
};
use crate::APP_RESOURCE_PATH;
@ -17,6 +18,9 @@ impl SimpleAsyncComponent for AboutPage {
type Init = ();
view! {
gtk::Box {
set_orientation: gtk::Orientation::Vertical,
adw::PreferencesPage {
add = &adw::PreferencesGroup {
gtk::Label {
@ -33,11 +37,12 @@ impl SimpleAsyncComponent for AboutPage {
gtk::Label {
set_label: "This software was made under the GPL-3.0 license",
set_margin_top: 24,
set_margin_vertical: 24,
add_css_class: "title-4",
},
gtk::Label {
set_justify: gtk::Justification::Fill,
set_label: r#"Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@ -716,6 +721,7 @@ Public License instead of this License. But first, please read
},
},
}
}
async fn init(
_: Self::Init,