[seahorse] Opt-in to color scheme user preference



commit dce0eba213994bdda64e68df80f3bc5bd19536f1
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Thu Oct 14 13:49:08 2021 +0200

    Opt-in to color scheme user preference

 meson.build          | 5 ++++-
 src/application.vala | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 3ad8ac51..e3242323 100644
--- a/meson.build
+++ b/meson.build
@@ -37,7 +37,8 @@ glib_deps = [
   dependency('gmodule-2.0', version: '>=' + min_glib_version),
 ]
 gtk = dependency('gtk+-3.0', version: '>= 3.24.0')
-libhandy_dep = dependency('libhandy-1', version: '>= 1.1.0')
+# FIXME bump to 1.6.0 after libhandy 1.6 is released.
+libhandy_dep = dependency('libhandy-1', version: '>= 1.5.0')
 gcr = dependency('gcr-3',       version: '>=' + min_gcr_version)
 gcr_ui = dependency('gcr-ui-3', version: '>=' + min_gcr_version)
 libsecret = dependency('libsecret-1', version: '>= 0.16')
@@ -80,6 +81,8 @@ avahi_glib = dependency('avahi-glib', version: '>= 0.6', required: get_option('k
 # Project-wide flags
 add_project_arguments([
     '--target-glib=@0@'.format(min_glib_version),
+    # FIXME Remove and bump version after libhandy 1.6 is released.
+    '--disable-since-check',
   ],
   language: 'vala',
 )
diff --git a/src/application.vala b/src/application.vala
index 240ae7da..469844ad 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -98,6 +98,9 @@ public class Seahorse.Application : Gtk.Application {
 
         Hdy.init();
 
+        // Opt-in to Color Scheme user preference
+        Hdy.StyleManager.get_default ().color_scheme = Hdy.ColorScheme.PREFER_LIGHT;
+
         // Insert Icons into Stock
         icons_init();
 


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