This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-06-30 13:43:19 +03:00
parent 232e3a79a4
commit e9f47f52bb

View File

@ -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")