mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
update button css classes
This commit is contained in:
parent
8b0a95cb6e
commit
61e3a46d9d
@ -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…
x
Reference in New Issue
Block a user