summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2022-01-05 22:00:20 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2022-02-10 00:34:38 +0000
commit0a405da84a6f2f106603a5045cf15d6e8853c9b0 (patch)
treeb3fd9cd7a16f5644df9c4152d91e8dfe0ba5a49b
parent47b1095f9f0ff25fade69d412e26cf091f883092 (diff)
downloadyelp-0a405da84a6f2f106603a5045cf15d6e8853c9b0.tar.gz
application: Support color-scheme
It will be used for the light/dark preference in GNOME 42.
-rw-r--r--configure.ac2
-rw-r--r--src/yelp-application.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e67463cd..939c822c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ PKG_CHECK_MODULES(YELP,
gio-unix-2.0
gtk+-unix-print-3.0
gtk+-3.0 >= 3.13.3
- libhandy-1 >= 1.0.0
+ libhandy-1 >= 1.5.0
libxml-2.0 >= 2.6.5
libxslt >= 1.1.4
libexslt >= 0.8.1
diff --git a/src/yelp-application.c b/src/yelp-application.c
index 8d046f31..4e4d7a31 100644
--- a/src/yelp-application.c
+++ b/src/yelp-application.c
@@ -272,6 +272,8 @@ yelp_application_startup (GApplication *application)
G_APPLICATION_CLASS (yelp_application_parent_class)->startup (application);
hdy_init ();
+ hdy_style_manager_set_color_scheme (hdy_style_manager_get_default (),
+ HDY_COLOR_SCHEME_PREFER_LIGHT);
settings = yelp_settings_get_default ();
if (editor_mode)