From 995249eea6985828eeabe9ea33698e1f6b9951b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Mon, 15 Jul 2024 16:03:49 +0200 Subject: [PATCH] Text button for Cancel in unsaved changes dialog (#213) * chore: use text button for cancel * cargo fmt * fix: use text button for cancel The text will use the accent color after updating libcosmic * fmt --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6efc33b..8ff9983 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1467,7 +1467,7 @@ impl Application for App { let discard_button = widget::button::destructive(fl!("discard")) .on_press(Message::TabCloseForce(*entity)); let cancel_button = - widget::button::standard(fl!("cancel")).on_press(Message::DialogCancel); + widget::button::text(fl!("cancel")).on_press(Message::DialogCancel); let dialog = widget::dialog(fl!("prompt-save-changes-title")) .body(fl!("prompt-unsaved-changes")) .icon(icon::from_name("dialog-warning-symbolic").size(64)) @@ -1509,7 +1509,7 @@ impl Application for App { let discard_button = widget::button::destructive(fl!("discard")).on_press(Message::QuitForce); let cancel_button = - widget::button::standard(fl!("cancel")).on_press(Message::DialogCancel); + widget::button::text(fl!("cancel")).on_press(Message::DialogCancel); let dialog = widget::dialog(fl!("prompt-save-changes-title")) .body(fl!("prompt-unsaved-changes")) .icon(icon::from_name("dialog-warning-symbolic").size(64))