From 76d1e8ce0e90eb5df640dbff75a91cf0a576d6a2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 14 Dec 2024 03:24:36 +0200 Subject: [PATCH] remove destructive decoration from cancel button --- src/app/browser/window/tab/item/identity/gemini/widget.rs | 3 ++- .../window/tab/item/identity/gemini/widget/form/drop.rs | 3 ++- .../window/tab/item/identity/gemini/widget/form/exit.rs | 3 ++- .../browser/window/tab/item/identity/unsupported/widget.rs | 5 +++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/browser/window/tab/item/identity/gemini/widget.rs b/src/app/browser/window/tab/item/identity/gemini/widget.rs index 7eea7a3c..527b6c23 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget.rs @@ -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({ diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/drop.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/drop.rs index 913d3ee1..96c07338 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/drop.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/drop.rs @@ -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), { diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/exit.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/exit.rs index e0b714ea..61bfff21 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/exit.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/exit.rs @@ -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), { diff --git a/src/app/browser/window/tab/item/identity/unsupported/widget.rs b/src/app/browser/window/tab/item/identity/unsupported/widget.rs index 961522f5..14b80885 100644 --- a/src/app/browser/window/tab/item/identity/unsupported/widget.rs +++ b/src/app/browser/window/tab/item/identity/unsupported/widget.rs @@ -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| {