From c4a9acb4ca2350716b7271e0ec67c3c01051e227 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Mon, 22 May 2023 13:20:52 +0200 Subject: [PATCH] fix(ui): fixed predownload button ui --- src/ui/main/mod.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/ui/main/mod.rs b/src/ui/main/mod.rs index 5aedc60..b1433f0 100644 --- a/src/ui/main/mod.rs +++ b/src/ui/main/mod.rs @@ -301,19 +301,11 @@ impl SimpleComponent for App { set_margin_top: 64, set_spacing: 8, - // TODO: add tooltips - adw::Bin { set_css_classes: &["background", "round-bin"], gtk::Button { - #[watch] - set_width_request: match model.style { - LauncherStyle::Modern => -1, - LauncherStyle::Classic => 40 - }, - - // TODO: update tooltip for predownloaded update + set_width_request: 44, #[watch] set_tooltip_text: Some(&tr_args("predownload-update", [ @@ -365,13 +357,13 @@ impl SimpleComponent for App { voices.iter().all(|voice| temp.join(voice.file_name().unwrap()).exists()); if downloaded { - &["success"] + &["success", "circular"] } else { - &["warning"] + &["warning", "circular"] } } - _ => &["warning"] + _ => &["warning", "circular"] }, set_icon_name: "document-save-symbolic",