remove destructive decoration from cancel button

This commit is contained in:
yggverse 2024-12-14 03:24:36 +02:00
parent bc1cca08bc
commit 76d1e8ce0e
4 changed files with 9 additions and 5 deletions

View File

@ -72,7 +72,8 @@ impl Widget {
// Decorate default response preset // Decorate default response preset
alert_dialog.set_response_appearance(RESPONSE_APPLY.0, ResponseAppearance::Suggested); 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 // Init events
widget_action.update.connect_activate({ widget_action.update.connect_activate({

View File

@ -62,10 +62,11 @@ impl Drop {
ResponseAppearance::Suggested, ResponseAppearance::Suggested,
); );
/* contrast issue with Ubuntu orange accents
alert_dialog.set_response_appearance( alert_dialog.set_response_appearance(
RESPONSE_CANCEL.0, RESPONSE_CANCEL.0,
ResponseAppearance::Destructive, ResponseAppearance::Destructive,
); ); */
// Connect confirmation event // Connect confirmation event
alert_dialog.connect_response(Some(RESPONSE_CONFIRM.0), { alert_dialog.connect_response(Some(RESPONSE_CONFIRM.0), {

View File

@ -72,10 +72,11 @@ impl Exit {
ResponseAppearance::Suggested, ResponseAppearance::Suggested,
); );
/* contrast issue with Ubuntu orange accents
alert_dialog.set_response_appearance( alert_dialog.set_response_appearance(
RESPONSE_CANCEL.0, RESPONSE_CANCEL.0,
ResponseAppearance::Destructive, ResponseAppearance::Destructive,
); ); */
// Connect confirmation event // Connect confirmation event
alert_dialog.connect_response(Some(RESPONSE_CONFIRM.0), { alert_dialog.connect_response(Some(RESPONSE_CONFIRM.0), {

View File

@ -1,6 +1,6 @@
use adw::{ use adw::{
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual}, prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
AlertDialog, ResponseAppearance, AlertDialog,
}; };
use gtk::prelude::IsA; use gtk::prelude::IsA;
@ -29,7 +29,8 @@ impl Widget {
gobject.add_responses(&[RESPONSE_QUIT]); gobject.add_responses(&[RESPONSE_QUIT]);
// Decorate default response preset // 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 // Init events
gobject.connect_response(None, move |dialog, response| { gobject.connect_response(None, move |dialog, response| {