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

Temporarily disable version checking since the latest libhandy release
is 1.5.90
---
 deja-dup/main.vala | 3 +++
 meson.build        | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/deja-dup/main.vala b/deja-dup/main.vala
index 7613b9d..a28de40 100644
--- a/deja-dup/main.vala
+++ b/deja-dup/main.vala
@@ -159,6 +159,9 @@ public class DejaDupApp : Gtk.Application
     base.startup();
 
     Hdy.init();
+    Hdy.StyleManager.get_default().set_color_scheme(
+      Hdy.ColorScheme.PREFER_LIGHT);
+
     DejaDup.gui_initialize();
 
     add_action_entries(ACTIONS, this);
diff --git a/meson.build b/meson.build
index a90464e..4c49988 100644
--- a/meson.build
+++ b/meson.build
@@ -32,7 +32,7 @@ gdk_x11_dep = dependency('gdk-x11-3.0', required: false)
 gio_dep = dependency('gio-2.0', version: '>= 2.64')
 gio_unix_dep = dependency('gio-unix-2.0')
 gtk_dep = dependency('gtk+-3.0', version: '>= 3.22')
-handy_dep = dependency('libhandy-1')
+handy_dep = dependency('libhandy-1', version: '>= 1.5.90')
 json_dep = dependency('json-glib-1.0', version: '>= 1.2')
 packagekit_dep = dependency('packagekit-glib2', version: '>=0.6.5', required: false)
 secret_dep = dependency('libsecret-1', version: '>= 0.18.6')
@@ -63,6 +63,7 @@ common_vflags = [
     '--pkg=posix',
     '--target-glib=2.64',
     '--vapidir', vapidir,
+    '--disable-since-check',
 ]
 common_cflags = [
     '-DG_LOG_DOMAIN="deja-dup"',
