style(ui): improved style of fullscreen first run window

Centered all the components for better styling
This commit is contained in:
Observer KRypt0n_ 2023-02-24 13:31:10 +02:00
parent 4bdce19063
commit aa182e6efb
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
5 changed files with 16 additions and 6 deletions

View file

@ -53,6 +53,9 @@ impl SimpleAsyncComponent for DefaultPathsApp {
set_hexpand: true,
add = &adw::PreferencesGroup {
set_valign: gtk::Align::Center,
set_vexpand: true,
gtk::Label {
set_label: "Choose default paths",
add_css_class: "title-1"

View file

@ -32,10 +32,11 @@ impl SimpleAsyncComponent for DependenciesApp {
set_hexpand: true,
add = &adw::PreferencesGroup {
set_valign: gtk::Align::Center,
set_vexpand: true,
gtk::Label {
set_label: "You're missing some dependencies!",
set_margin_top: 32,
add_css_class: "title-1"
},

View file

@ -35,9 +35,11 @@ impl SimpleAsyncComponent for DownloadComponentsApp {
set_hexpand: true,
add = &adw::PreferencesGroup {
set_valign: gtk::Align::Center,
set_vexpand: true,
gtk::Label {
set_label: "Download components",
set_margin_top: 16,
add_css_class: "title-1"
}
},

View file

@ -26,9 +26,11 @@ impl SimpleAsyncComponent for TosWarningApp {
set_hexpand: true,
add = &adw::PreferencesGroup {
set_valign: gtk::Align::Center,
set_vexpand: true,
gtk::Label {
set_label: "ToS violation warning",
set_margin_top: 8,
add_css_class: "title-1"
},

View file

@ -23,10 +23,12 @@ impl SimpleAsyncComponent for WelcomeApp {
set_hexpand: true,
add = &adw::PreferencesGroup {
set_valign: gtk::Align::Center,
set_vexpand: true,
gtk::Image {
set_resource: Some("/org/app/images/icon.png"),
set_height_request: 128,
set_margin_top: 16
set_height_request: 128
},
gtk::Label {