[gnome-weather/wip/cdavis/dark-style-pref] Opt-in to libhandy dark style preference




commit f0c1fad1612105249a4d9a4774eaa3a73768f34e
Author: Christopher Davis <christopherdavis gnome org>
Date:   Fri Sep 24 21:16:39 2021 -0700

    Opt-in to libhandy dark style preference

 src/app/main.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/app/main.js b/src/app/main.js
index 8292215..fafd18d 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -94,6 +94,10 @@ const Application = GObject.registerClass(
 
         Util.loadStyleSheet('/org/gnome/Weather/application.css');
 
+        Handy.StyleManager
+            .get_default()
+            .set_color_scheme(Handy.StyleManager.PREFER_LIGHT);
+
         this.world = GWeather.Location.get_world();
         this.model = new World.WorldModel(this.world, true);
         this.currentLocationController = new CurrentLocationController.CurrentLocationController(this.model);


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