mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update button css classes
This commit is contained in:
parent
8b0a95cb6e
commit
61e3a46d9d
4 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ use gtk::{glib::SignalHandlerId, prelude::ButtonExt, Align, Button};
|
|||
|
||||
// Defaults
|
||||
|
||||
const CSS_CLASSES: [&str; 1] = ["error"];
|
||||
const CSS_CLASSES: [&str; 1] = ["destructive-action"];
|
||||
const LABEL: &str = "Cancel";
|
||||
const MARGIN: i32 = 16;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use gtk::{glib::SignalHandlerId, prelude::ButtonExt, Align, Button};
|
|||
|
||||
// Defaults
|
||||
|
||||
const CSS_CLASSES: [&str; 1] = ["accent"];
|
||||
const CSS_CLASSES: [&str; 1] = ["suggested-action"];
|
||||
const LABEL: &str = "Choose location..";
|
||||
const MARGIN: i32 = 16;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use gtk::{glib::SignalHandlerId, prelude::ButtonExt, Align, Button};
|
|||
|
||||
// Defaults
|
||||
|
||||
const CSS_CLASSES: [&str; 1] = ["accent"];
|
||||
const CSS_CLASSES: [&str; 1] = ["suggested-action"];
|
||||
const LABEL: &str = "Open";
|
||||
const MARGIN: i32 = 16;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ pub fn new(mime: &str, download: Option<(Rc<TabAction>, GString)>) -> StatusPage
|
|||
|
||||
if let Some((action, request)) = download {
|
||||
let button = Button::builder()
|
||||
.css_classes(["accent"])
|
||||
.css_classes(["suggested-action"])
|
||||
.halign(Align::Center)
|
||||
.label("Download")
|
||||
.tooltip_text("Download as file to open with external application")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue