[nautilus/wip/antoniof/gnome-41-highcontrast: 4/5] application: Apply custom styles in HighConstrast
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gnome-41-highcontrast: 4/5] application: Apply custom styles in HighConstrast
- Date: Sat, 19 Mar 2022 17:10:10 +0000 (UTC)
commit 19a22809d0d9ff60fe1c0fc82cc78f7e7c0b7b3b
Author: António Fernandes <antoniof gnome org>
Date: Wed Mar 16 19:26:27 2022 +0000
application: Apply custom styles in HighConstrast
HighContrast and HighContrastInverse have been poorly supported in
this app for a long time because we ship many custom styles.
However, nowadays HighContrast and HighContrastInverse stylesheets
are derived from Adwaita stylesheet, so the same custom styles
can be applied cleanly. Let's do that.
Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1614
and fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1469
src/nautilus-application.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 973e1b521..58fc0dddf 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1127,7 +1127,10 @@ theme_changed (GtkSettings *settings)
screen = gdk_screen_get_default ();
/* CSS that themes can override */
- if (g_str_equal (theme, "Adwaita") || g_str_equal (theme, "Adwaita-dark"))
+ if (g_str_equal (theme, "Adwaita") ||
+ g_str_equal (theme, "Adwaita-dark") ||
+ g_str_equal (theme, "HighContrast") ||
+ g_str_equal (theme, "HighContrastInverse"))
{
if (provider == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]