[simple-scan/wip/exalm/dark: 5/7] Opt into dark style preference




commit e7fff4e4fa2633dfbd26185bf3659b5319b7ccf6
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Dec 25 22:35:07 2021 +0500

    Opt into dark style preference

 meson.build          | 4 ++--
 src/simple-scan.vala | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index c4a3bac2..81aabbda 100644
--- a/meson.build
+++ b/meson.build
@@ -7,7 +7,7 @@ project ('simple-scan', ['vala', 'c'],
          ],
          meson_version: '>= 0.37.1')
 
-# FIXME Disable --disable-since-check after libhandy 1.2 is released
+# FIXME Disable --disable-since-check after libhandy 1.6 is released
 add_project_arguments (
   '--disable-since-check',
   language: 'vala'
@@ -29,7 +29,7 @@ glib_dep = dependency ('glib-2.0', version: '>= 2.38')
 gtk_dep = dependency ('gtk+-3.0', version: '>=3.24')
 gmodule_dep = dependency ('gmodule-export-2.0')
 gthread_dep = dependency ('gthread-2.0')
-libhandy_dep = dependency ('libhandy-1', version: '>= 1.1.90', required: false)
+libhandy_dep = dependency ('libhandy-1', version: '>= 1.5.0', required: false)
 zlib_dep = dependency ('zlib')
 cairo_dep = dependency ('cairo')
 gdk_pixbuf_dep = dependency ('gdk-pixbuf-2.0')
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index 71f32de9..5deedcfa 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -51,6 +51,7 @@ public class SimpleScan : Gtk.Application
         base.startup ();
 
         Hdy.init ();
+        Hdy.StyleManager.get_default ().color_scheme = PREFER_LIGHT;
 
         app = new AppWindow ();
         book = app.book;


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