From ee3df6a92ac8b9d265513ca9e4427e9b3726e532 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" Date: Fri, 30 Jun 2023 10:44:48 +0300 Subject: [PATCH] fix text --- src/main.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index eee30f6..ce985b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,7 @@ fn build_ui(app: &Application) { if driver_name != "emScuM8rsa6kuhMePtR5bT8s4z9s" { driver_label.set_label(driver) } else { - driver_label.set_label("No Driver are required for this system you are good to go! 😎") + driver_label.set_label("No Drivers are required for this system you are good to go! 😎") } @@ -75,15 +75,15 @@ fn build_ui(app: &Application) { .margin_end(12) .build(); - let driver_separator = gtk::Separator::builder() + let driver_middle_part = gtk::Box::builder() + .orientation(Orientation::Vertical) .hexpand(true) - .opacity(0.0) .build(); driver_button_refresh(&driver_string2, &driver_button); driver_box.append(&driver_label); - driver_box.append(&driver_separator); + driver_box.append(&driver_middle_part); if driver_name != "emScuM8rsa6kuhMePtR5bT8s4z9s" { driver_box.append(&driver_button); } @@ -155,17 +155,17 @@ fn driver_button_refresh(driver: &str, driver_button: &Button) { if driver_command.status.success() { println!("Checking Driver Presence of {}: Success!", driver); if driver.contains("nvidia") { - driver_button.set_tooltip_text(Some("This uninstall and revert to nouveau")); + driver_button.set_tooltip_text(Some("Uninstall and revert to nouveau.")); } else { - driver_button.set_tooltip_text(Some("This uninstall the driver")); + driver_button.set_tooltip_text(Some("Uninstall.")); } driver_button.set_icon_name("user-trash-symbolic"); } else { println!("Checking Driver Presence of {}: Failure! Driver isn't installed", driver); if driver.contains("nvidia") { - driver_button.set_tooltip_text(Some("This will remove nouveau and install")); + driver_button.set_tooltip_text(Some("Install and override nouveau.")); } else { - driver_button.set_tooltip_text(Some("Install")); + driver_button.set_tooltip_text(Some("Install.")); } driver_button.set_icon_name("go-down-symbolic"); }