mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-16 17:38:51 +00:00
edited the about page
This commit is contained in:
parent
c84520212c
commit
ce50bf00e4
@ -1,7 +1,8 @@
|
|||||||
use libadwaita::prelude::PreferencesPageExt;
|
use libadwaita::prelude::{PreferencesPageExt, PreferencesRowExt};
|
||||||
use relm4::{
|
use relm4::{
|
||||||
gtk::prelude::WidgetExt,
|
gtk::prelude::{OrientableExt, WidgetExt},
|
||||||
prelude::{adw, gtk, AsyncComponentParts, SimpleAsyncComponent},
|
prelude::{adw, gtk, AsyncComponentParts, SimpleAsyncComponent},
|
||||||
|
RelmWidgetExt,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::APP_RESOURCE_PATH;
|
use crate::APP_RESOURCE_PATH;
|
||||||
@ -17,6 +18,9 @@ impl SimpleAsyncComponent for AboutPage {
|
|||||||
type Init = ();
|
type Init = ();
|
||||||
|
|
||||||
view! {
|
view! {
|
||||||
|
gtk::Box {
|
||||||
|
set_orientation: gtk::Orientation::Vertical,
|
||||||
|
|
||||||
adw::PreferencesPage {
|
adw::PreferencesPage {
|
||||||
add = &adw::PreferencesGroup {
|
add = &adw::PreferencesGroup {
|
||||||
gtk::Label {
|
gtk::Label {
|
||||||
@ -33,11 +37,12 @@ impl SimpleAsyncComponent for AboutPage {
|
|||||||
|
|
||||||
gtk::Label {
|
gtk::Label {
|
||||||
set_label: "This software was made under the GPL-3.0 license",
|
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",
|
add_css_class: "title-4",
|
||||||
},
|
},
|
||||||
|
|
||||||
gtk::Label {
|
gtk::Label {
|
||||||
|
set_justify: gtk::Justification::Fill,
|
||||||
set_label: r#"Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
set_label: r#"Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
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(
|
async fn init(
|
||||||
_: Self::Init,
|
_: Self::Init,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user