[nautilus/gnome-3-22] application: Load Adwaita.css for Adwaita-dark
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-22] application: Load Adwaita.css for Adwaita-dark
- Date: Sun, 26 Feb 2017 22:20:25 +0000 (UTC)
commit 31b30bc1a0cba59cdff2896240ee764e3cdc555f
Author: Daniel Boles <dboles src gnome org>
Date: Sun Feb 26 21:18:55 2017 +0000
application: Load Adwaita.css for Adwaita-dark
"Adwaita-dark" is supplied by gnome-themes-standard and has a distinct
name to theme GTK+ 2. For GTK+ 3, this theme just imports gtk-contained-
dark.css from the library, so it's _as if_ Adwaita was the system theme.
But Nautilus only applied its Adwaita-specific CSS if the system theme
name was exactly "Adwaita". So using "Adwaita-dark" meant we got Adwaita
but without Nautilus' additions to it, even though they are applicable.
Fix this by also loading Adwaita.css if the theme name is "Adwaita-dark"
https://bugzilla.gnome.org/show_bug.cgi?id=779266
src/nautilus-application.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index f11dfe6..567fbe4 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1068,7 +1068,7 @@ theme_changed (GtkSettings *settings)
screen = gdk_screen_get_default ();
/* CSS that themes can override */
- if (g_str_equal (theme, "Adwaita"))
+ if (g_str_equal (theme, "Adwaita") || g_str_equal (theme, "Adwaita-dark"))
{
if (provider == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]