add labels

This commit is contained in:
Ward from fusion-voyager-3 2024-09-07 13:44:34 +03:00
parent 2ab9308ec9
commit d0837b5b8b
2 changed files with 30 additions and 1 deletions

View File

@ -85,5 +85,7 @@
"apt_ignored_viewport_page_title": "APT Updates Were Failed & Ignored", "apt_ignored_viewport_page_title": "APT Updates Were Failed & Ignored",
"flatpak_update_dialog_ignore_label": "Ignore Flatpak Updates", "flatpak_update_dialog_ignore_label": "Ignore Flatpak Updates",
"flatpak_ignored_viewport_page_title": "Flatpak Updates Were Failed & Ignored", "flatpak_ignored_viewport_page_title": "Flatpak Updates Were Failed & Ignored",
"apt_manage_page_title": "APT Settings" "apt_manage_page_title": "APT Settings",
"system_mirror_label0_label": "System Repository Mirror",
"system_mirror_label1_label": "The Default URI/Mirror Used by the Base PikaOS System APT Repositories\n(Nest, Cockatiel, Canary, Pigeon, Parrot, Raven)"
} }

View File

@ -41,11 +41,38 @@ pub fn apt_manage_page(
.orientation(Orientation::Vertical) .orientation(Orientation::Vertical)
.build(); .build();
let system_mirror_label0 = gtk::Label::builder()
.label(t!("system_mirror_label0_label"))
.halign(gtk::Align::Start)
.valign(gtk::Align::Start)
.hexpand(true)
.margin_top(15)
.margin_start(15)
.margin_end(15)
.build();
system_mirror_label0.add_css_class("heading");
let system_mirror_label1 = gtk::Label::builder()
.label(t!("system_mirror_label1_label"))
.halign(gtk::Align::Start)
.valign(gtk::Align::Start)
.hexpand(true)
.margin_start(15)
.margin_end(15)
.build();
let system_mirror_entry = gtk::Entry::builder() let system_mirror_entry = gtk::Entry::builder()
.placeholder_text(system_source.repolib_default_mirror.as_deref().unwrap()) .placeholder_text(system_source.repolib_default_mirror.as_deref().unwrap())
.text(system_source.uris.as_deref().unwrap()) .text(system_source.uris.as_deref().unwrap())
.valign(gtk::Align::Start)
.margin_top(5)
.margin_bottom(5)
.margin_start(15)
.margin_end(15)
.build(); .build();
main_box.append(&system_mirror_label0);
main_box.append(&system_mirror_label1);
main_box.append(&system_mirror_entry); main_box.append(&system_mirror_entry);
main_box main_box