From: Jeremy Bicha <jbicha@debian.org>
Date: Mon, 14 Feb 2022 13:34:18 -0500
Subject: Support GNOME 42 dark theme preference

Temporarily disable the version check since
the new libhandy features are marked as 1.6
but 1.5.90 is the latest version (pre-release) available
---
 meson.build                 | 2 +-
 src/baobab-application.vala | 2 ++
 src/meson.build             | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index f64c3ce..2384f38 100644
--- a/meson.build
+++ b/meson.build
@@ -13,7 +13,7 @@ glib = dependency('glib-2.0', version: '>=2.44')
 gio = dependency('gio-2.0', version: '>=2.44')
 gobject = dependency('gobject-2.0', version: '>=2.44')
 gtk = dependency('gtk+-3.0', version: '>=3.24.1')
-libhandy = dependency('libhandy-1', version: '>=1.0.0')
+libhandy = dependency('libhandy-1', version: '>=1.5.0')
 
 cc = meson.get_compiler('c')
 math = cc.find_library('m', required: false)
diff --git a/src/baobab-application.vala b/src/baobab-application.vala
index dee0a03..8169653 100644
--- a/src/baobab-application.vala
+++ b/src/baobab-application.vala
@@ -81,6 +81,8 @@ namespace Baobab {
             base.startup ();
 
             Hdy.init ();
+            Hdy.StyleManager.get_default().set_color_scheme(
+                Hdy.ColorScheme.PREFER_LIGHT);
 
             // Load custom CSS
             var css_provider = new Gtk.CssProvider ();
diff --git a/src/meson.build b/src/meson.build
index d094418..c1a8f28 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -28,6 +28,7 @@ baobab_vala_args = [
   '--target-glib', '2.44',
   '--vapidir', meson.current_source_dir(),
   '--gresources', resource_files,
+  '--disable-since-check'
 ]
 
 baobab_c_args = [
