From 6e8bd9b31062bc509b86c951a6375a57f35573fa Mon Sep 17 00:00:00 2001 From: Jeremy Bicha Date: Tue, 15 Feb 2022 09:02:36 -0500 Subject: [PATCH 1/2] build: Set minimum libhandy to 1.6 needed for the GNOME 42 dark theme preference --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index faa2d0101..a0b7c8306 100644 --- a/meson.build +++ b/meson.build @@ -85,7 +85,7 @@ icu_uc = dependency('icu-uc', version: '>=60') iso_codes = dependency('iso-codes') javascriptcoregtk = dependency('javascriptcoregtk-4.1', version: '>=' + target_webkit) json_glib = dependency('json-glib-1.0', version: '>= 1.0') -libhandy = dependency('libhandy-1', version: '>= 1.2.1', required: false) +libhandy = dependency('libhandy-1', version: '>= 1.6', required: false) libmath = cc.find_library('m') libpeas = dependency('libpeas-1.0', version: '>= 1.24.0') libsecret = dependency('libsecret-1', version: '>= 0.11') -- GitLab From dcb1ee40b3a5477a6a01b0f0a3a01be14610fd80 Mon Sep 17 00:00:00 2001 From: Jeremy Bicha Date: Tue, 15 Feb 2022 08:40:35 -0500 Subject: [PATCH 2/2] Support GNOME 42 dark theme preference --- src/client/application/application-client.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/application/application-client.vala b/src/client/application/application-client.vala index 6cc9da194..a0be4bf93 100644 --- a/src/client/application/application-client.vala +++ b/src/client/application/application-client.vala @@ -373,6 +373,8 @@ public class Application.Client : Gtk.Application { // Calls Gtk.init(), amongst other things base.startup(); Hdy.init(); + Hdy.StyleManager.get_default().set_color_scheme( + Hdy.ColorScheme.PREFER_LIGHT); this.engine = new Geary.Engine(get_resource_directory()); this.config = new Configuration(SCHEMA_ID); -- GitLab