fix(ui): fixed predownload button ui
This commit is contained in:
parent
c26870d90c
commit
c4a9acb4ca
1 changed files with 4 additions and 12 deletions
|
@ -301,19 +301,11 @@ impl SimpleComponent for App {
|
||||||
set_margin_top: 64,
|
set_margin_top: 64,
|
||||||
set_spacing: 8,
|
set_spacing: 8,
|
||||||
|
|
||||||
// TODO: add tooltips
|
|
||||||
|
|
||||||
adw::Bin {
|
adw::Bin {
|
||||||
set_css_classes: &["background", "round-bin"],
|
set_css_classes: &["background", "round-bin"],
|
||||||
|
|
||||||
gtk::Button {
|
gtk::Button {
|
||||||
#[watch]
|
set_width_request: 44,
|
||||||
set_width_request: match model.style {
|
|
||||||
LauncherStyle::Modern => -1,
|
|
||||||
LauncherStyle::Classic => 40
|
|
||||||
},
|
|
||||||
|
|
||||||
// TODO: update tooltip for predownloaded update
|
|
||||||
|
|
||||||
#[watch]
|
#[watch]
|
||||||
set_tooltip_text: Some(&tr_args("predownload-update", [
|
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());
|
voices.iter().all(|voice| temp.join(voice.file_name().unwrap()).exists());
|
||||||
|
|
||||||
if downloaded {
|
if downloaded {
|
||||||
&["success"]
|
&["success", "circular"]
|
||||||
} else {
|
} else {
|
||||||
&["warning"]
|
&["warning", "circular"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => &["warning"]
|
_ => &["warning", "circular"]
|
||||||
},
|
},
|
||||||
|
|
||||||
set_icon_name: "document-save-symbolic",
|
set_icon_name: "document-save-symbolic",
|
||||||
|
|
Loading…
Reference in a new issue