mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove destructive decoration from cancel button
This commit is contained in:
parent
bc1cca08bc
commit
76d1e8ce0e
4 changed files with 9 additions and 5 deletions
|
|
@ -72,7 +72,8 @@ impl Widget {
|
|||
|
||||
// Decorate default response preset
|
||||
alert_dialog.set_response_appearance(RESPONSE_APPLY.0, ResponseAppearance::Suggested);
|
||||
alert_dialog.set_response_appearance(RESPONSE_CANCEL.0, ResponseAppearance::Destructive);
|
||||
/* contrast issue with Ubuntu orange accents
|
||||
alert_dialog.set_response_appearance(RESPONSE_CANCEL.0, ResponseAppearance::Destructive); */
|
||||
|
||||
// Init events
|
||||
widget_action.update.connect_activate({
|
||||
|
|
|
|||
|
|
@ -62,10 +62,11 @@ impl Drop {
|
|||
ResponseAppearance::Suggested,
|
||||
);
|
||||
|
||||
/* contrast issue with Ubuntu orange accents
|
||||
alert_dialog.set_response_appearance(
|
||||
RESPONSE_CANCEL.0,
|
||||
ResponseAppearance::Destructive,
|
||||
);
|
||||
); */
|
||||
|
||||
// Connect confirmation event
|
||||
alert_dialog.connect_response(Some(RESPONSE_CONFIRM.0), {
|
||||
|
|
|
|||
|
|
@ -72,10 +72,11 @@ impl Exit {
|
|||
ResponseAppearance::Suggested,
|
||||
);
|
||||
|
||||
/* contrast issue with Ubuntu orange accents
|
||||
alert_dialog.set_response_appearance(
|
||||
RESPONSE_CANCEL.0,
|
||||
ResponseAppearance::Destructive,
|
||||
);
|
||||
); */
|
||||
|
||||
// Connect confirmation event
|
||||
alert_dialog.connect_response(Some(RESPONSE_CONFIRM.0), {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use adw::{
|
||||
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
|
||||
AlertDialog, ResponseAppearance,
|
||||
AlertDialog,
|
||||
};
|
||||
use gtk::prelude::IsA;
|
||||
|
||||
|
|
@ -29,7 +29,8 @@ impl Widget {
|
|||
gobject.add_responses(&[RESPONSE_QUIT]);
|
||||
|
||||
// Decorate default response preset
|
||||
gobject.set_response_appearance(RESPONSE_QUIT.0, ResponseAppearance::Destructive);
|
||||
/* contrast issue with Ubuntu orange accents
|
||||
gobject.set_response_appearance(RESPONSE_QUIT.0, ResponseAppearance::Destructive); */
|
||||
|
||||
// Init events
|
||||
gobject.connect_response(None, move |dialog, response| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue