From: Jeremy Bicha <jbicha@debian.org>
Date: Tue, 15 Feb 2022 10:08:12 -0500
Subject: Support GNOME 42 dark theme preference

---
 meson.build           | 2 +-
 src/contacts-app.vala | 1 +
 src/meson.build       | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 4cb00c9..1c843d7 100644
--- a/meson.build
+++ b/meson.build
@@ -50,7 +50,7 @@ gmodule_export = dependency('gmodule-export-2.0', version: '>=' + min_glib_versi
 gnome_desktop = dependency('gnome-desktop-3.0')
 goa = dependency('goa-1.0')
 gtk = dependency('gtk+-3.0', version: '>= 3.23.1')
-libhandy = dependency('libhandy-1', version: '>= 1.1.0')
+libhandy = dependency('libhandy-1', version: '>= 1.5.90')
 # E-D-S
 libebook = dependency('libebook-1.2', version: '>=' + min_eds_version)
 libedataserver = dependency('libedataserver-1.2', version: '>=' + min_eds_version)
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index b1adaf4..9b76213 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -245,6 +245,7 @@ public class Contacts.App : Gtk.Application {
     base.startup ();
 
     Hdy.init ();
+    Hdy.StyleManager.get_default().set_color_scheme(Hdy.ColorScheme.PREFER_LIGHT);
 
     load_styling ();
     create_actions ();
diff --git a/src/meson.build b/src/meson.build
index d977638..8ca230b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -20,6 +20,7 @@ contacts_vala_args = [
   '--target-glib=@0@'.format(min_glib_version),
   '--pkg', 'config',
   '--pkg', 'custom',
+  '--disable-since-check',
 ]
 
 contacts_c_args = [
