[nautilus] application: Load Adwaita.css for Adwaita-dark



commit 78a1562861cee1c108e1faeb6bc501609f93861a
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 f88c7e6..77443f5 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1096,7 +1096,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]