[connections/wip/cdavis/style-manager] Use libhandy color scheme API




commit c95905d6e86ce4c75cd82d54e8e88efe51d52679
Author: Christopher Davis <christopherdavis gnome org>
Date:   Mon Oct 18 15:22:27 2021 -0700

    Use libhandy color scheme API
    
    See https://gitlab.gnome.org/GNOME/Initiatives/-/issues/32

 src/application.vala | 1 +
 src/meson.build      | 1 +
 src/window.vala      | 2 --
 3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index 15c79e7..3ff023b 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -99,6 +99,7 @@ namespace Connections {
             base.startup ();
 
             Hdy.init ();
+            Hdy.StyleManager.get_default ().color_scheme = PREFER_DARK;
         }
 
         public override void activate () {
diff --git a/src/meson.build b/src/meson.build
index de1100b..b43f623 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -59,6 +59,7 @@ c_args = [
 
 vala_args = [
   '--enable-experimental',
+  '--disable-since-check',
   '--target-glib=2.50',
 ]
 
diff --git a/src/window.vala b/src/window.vala
index 8f0637c..3f9dfec 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -53,8 +53,6 @@ namespace Connections {
         public Window (Gtk.Application app) {
             Object (application: app);
 
-            Gtk.Settings.get_default ().gtk_application_prefer_dark_theme = true;
-
             stack.set_visible_child (empty_view);
 
             bind_model (Application.application.model);


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