From 0a405da84a6f2f106603a5045cf15d6e8853c9b0 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Wed, 5 Jan 2022 22:00:20 +0500 Subject: application: Support color-scheme It will be used for the light/dark preference in GNOME 42. --- configure.ac | 2 +- src/yelp-application.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1