diff options
author | António Fernandes <antoniof@gnome.org> | 2022-03-16 19:26:27 +0000 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2022-03-19 17:10:05 +0000 |
commit | 19a22809d0d9ff60fe1c0fc82cc78f7e7c0b7b3b (patch) | |
tree | 2f83ef90dceba2704be8f68884f33f84817eeef9 | |
parent | 9f36eaa6f4e7757b7cdf41a54cfc9f03eaa0ce89 (diff) | |
download | nautilus-19a22809d0d9ff60fe1c0fc82cc78f7e7c0b7b3b.tar.gz |
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
-rw-r--r-- | src/nautilus-application.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |