Skip to content

Commit

Permalink
Text button for Cancel in unsaved changes dialog (#213)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
git-f0x authored Jul 15, 2024
1 parent 1edd7ec commit 995249e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 995249e

Please sign in to comment.