From e9f47f52bbd522205afd2ab9102019b0f71efb56 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" Date: Fri, 30 Jun 2023 13:43:19 +0300 Subject: [PATCH] snapshot --- src/main.rs | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/main.rs b/src/main.rs index 571ef44..a6e346c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,22 +92,19 @@ fn build_ui(app: &Application) { .hexpand(true) .build(); - - let driver_separator_1 = gtk::Separator::builder() - .orientation(Orientation::Vertical) - .build(); - - let driver_separator_2 = gtk::Separator::builder() - .orientation(Orientation::Vertical) - .build(); - let driver_middle_part_version_label = gtk::Label::builder() + .justify(Justification::Center) + .wrap(true) .build(); let driver_middle_part_description_label = gtk::Label::builder() + .justify(Justification::Center) + .wrap(true) .build(); let driver_middle_part_device_label = gtk::Label::builder() + .justify(Justification::Center) + .wrap(true) .build(); driver_middle_part_version_label.set_text(&String::from_utf8(command_version_label.stdout).unwrap()); @@ -121,9 +118,7 @@ fn build_ui(app: &Application) { driver_middle_part_box.append(&driver_middle_part_device_label); driver_box.append(&driver_label); - driver_box.append(&driver_separator_1); driver_box.append(&driver_middle_part_box); - driver_box.append(&driver_separator_2); if driver_name != "emScuM8rsa6kuhMePtR5bT8s4z9s" { driver_box.append(&driver_button); } @@ -142,8 +137,8 @@ fn build_ui(app: &Application) { .application(app) .child(&main_scroll) .icon_name("mintinstall") - .default_width(700) - .default_height(500) + .default_width(1200) + .default_height(600) .width_request(500) .height_request(500) .startup_id("pika-drivers")