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
This commit is contained in:
parent
1edd7ec101
commit
995249eea6
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue