[iagno] Prefer blue theme with Adwaita-dark.



commit e730ca19ceaf58aa1a7f2b1b3ad22348ce68b5bf
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Feb 13 04:13:01 2019 +0100

    Prefer blue theme with Adwaita-dark.
    
    GNOME has various ways to set
    theme to Adwaita-dark, try to
    handle them all when deciding
    what Default theme should be.

 src/game-view.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index ed6e496..9cd51c6 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -178,7 +178,8 @@ private class GameView : Gtk.DrawingArea
         string filename;
         if (defaults != null && "HighContrast" in ((!) defaults).gtk_theme_name)
             filename = "high_contrast.theme";
-        else if (defaults != null && ((!) defaults).gtk_application_prefer_dark_theme == true)
+        else if (defaults != null && (((!) defaults).gtk_application_prefer_dark_theme == true
+                                   || ((!) defaults).gtk_theme_name == "Adwaita-dark"))
             filename = "adwaita.theme";
         else
             filename = "classic.theme";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]