Refine UI
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m39s

This commit is contained in:
Ward from fusion-voyager-3 2024-10-26 22:41:45 +03:00
parent 48f5c30837
commit 65ecef155d
10 changed files with 37 additions and 10 deletions

View File

@ -1 +1 @@
7
8

2
Cargo.lock generated
View File

@ -1323,7 +1323,7 @@ dependencies = [
[[package]]
name = "pika-installer-gtk4"
version = "2.0.0"
version = "2.0.1"
dependencies = [
"async-channel",
"chrono",

View File

@ -1,6 +1,6 @@
[package]
name = "pika-installer-gtk4"
version = "2.0.0"
version = "2.0.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
pika-installer-gtk4 (2.0.1-101pika1) pika; urgency=low
* Refine UI
-- Ward Nakchbandi <hotrod.master@hotmail.com> Thu, 20 Sep 2022 22:01:00 +0000
pika-installer-gtk4 (2.0.0-101pika7) pika; urgency=low
* Fix partition selection

View File

@ -2,7 +2,7 @@
set -e
VERSION="2.0.0"
VERSION="2.0.1"
source ./pika-build-config.sh

View File

@ -228,7 +228,7 @@ impl ObjectImpl for DriveMountRow {
partition_button_row_dialog.add_response(
"devices_selection_button_row_dialog_ok",
"devices_selection_button_row_dialog_ok_label",
&t!("devices_selection_button_row_dialog_ok_label"),
);
partition_button.connect_clicked(clone!(

View File

@ -63,6 +63,26 @@ pub fn installation_progress_page(
.margin_end(5)
.build();
{
let settings = gtk::Settings::default().unwrap();
if settings.is_gtk_application_prefer_dark_theme() {
placeholder_icon.set_icon_name(Some("pika-logo-text-dark"));
} else {
placeholder_icon.set_icon_name(Some("pika-logo-text"));
};
settings.connect_gtk_application_prefer_dark_theme_notify(clone!(
#[weak]
placeholder_icon,
move |settings| {
if settings.is_gtk_application_prefer_dark_theme() {
placeholder_icon.set_icon_name(Some("pika-logo-text-dark"));
} else {
placeholder_icon.set_icon_name(Some("pika-logo-text"));
};
}
));
}
let progress_bar_box = gtk::Box::builder()
.orientation(gtk::Orientation::Horizontal)
.margin_start(10)

View File

@ -99,16 +99,17 @@ pub fn installation_summary_page(
.selection_mode(gtk::SelectionMode::None)
.build();
installation_summary_row_viewport_listbox.add_css_class("boxed-list");
installation_summary_row_viewport_listbox.add_css_class("round-all-scroll");
installation_summary_row_viewport_listbox.add_css_class("no-round-borders");
let installation_summary_row_viewport = gtk::ScrolledWindow::builder()
.vexpand(true)
.hexpand(true)
.has_frame(true)
.overflow(gtk::Overflow::Hidden)
.child(&installation_summary_row_viewport_listbox)
.build();
installation_summary_row_viewport.add_css_class("round-all-scroll");
installation_summary_row_viewport.add_css_class("round-all-scroll-no-padding");
let install_confirm_button = gtk::Button::builder()
.margin_top(15)

View File

@ -54,7 +54,6 @@ pub fn keyboard_page(
keyboard_search_bar.add_css_class("rounded-all-25");
let keyboard_test_entry_boxed_list = gtk::ListBox::builder()
.margin_top(5)
.margin_bottom(5)
.build();

View File

@ -60,16 +60,17 @@ pub fn manual_partitioning_page(
.selection_mode(gtk::SelectionMode::None)
.build();
drive_mounts_adw_listbox.add_css_class("boxed-list");
drive_mounts_adw_listbox.add_css_class("round-all-scroll");
drive_mounts_adw_listbox.add_css_class("no-round-borders");
let drive_mounts_viewport = gtk::ScrolledWindow::builder()
.vexpand(true)
.hexpand(true)
.has_frame(true)
.overflow(gtk::Overflow::Hidden)
.child(&drive_mounts_adw_listbox)
.build();
drive_mounts_viewport.add_css_class("round-all-scroll");
drive_mounts_viewport.add_css_class("round-all-scroll-no-padding");
create_hardcoded_rows(
&drive_mounts_adw_listbox,