update button css classes

This commit is contained in:
yggverse 2024-12-12 13:37:07 +02:00
parent 8b0a95cb6e
commit 61e3a46d9d
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ use gtk::{glib::SignalHandlerId, prelude::ButtonExt, Align, Button};
// Defaults // Defaults
const CSS_CLASSES: [&str; 1] = ["error"]; const CSS_CLASSES: [&str; 1] = ["destructive-action"];
const LABEL: &str = "Cancel"; const LABEL: &str = "Cancel";
const MARGIN: i32 = 16; const MARGIN: i32 = 16;

View File

@ -2,7 +2,7 @@ use gtk::{glib::SignalHandlerId, prelude::ButtonExt, Align, Button};
// Defaults // Defaults
const CSS_CLASSES: [&str; 1] = ["accent"]; const CSS_CLASSES: [&str; 1] = ["suggested-action"];
const LABEL: &str = "Choose location.."; const LABEL: &str = "Choose location..";
const MARGIN: i32 = 16; const MARGIN: i32 = 16;

View File

@ -2,7 +2,7 @@ use gtk::{glib::SignalHandlerId, prelude::ButtonExt, Align, Button};
// Defaults // Defaults
const CSS_CLASSES: [&str; 1] = ["accent"]; const CSS_CLASSES: [&str; 1] = ["suggested-action"];
const LABEL: &str = "Open"; const LABEL: &str = "Open";
const MARGIN: i32 = 16; const MARGIN: i32 = 16;

View File

@ -14,7 +14,7 @@ pub fn new(mime: &str, download: Option<(Rc<TabAction>, GString)>) -> StatusPage
if let Some((action, request)) = download { if let Some((action, request)) = download {
let button = Button::builder() let button = Button::builder()
.css_classes(["accent"]) .css_classes(["suggested-action"])
.halign(Align::Center) .halign(Align::Center)
.label("Download") .label("Download")
.tooltip_text("Download as file to open with external application") .tooltip_text("Download as file to open with external application")