[yelp/wip/exalm/dark] application: Support color-scheme




commit b706057f4106bf2e7c8ef9bae08c49bd678cf13d
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jan 5 22:00:20 2022 +0500

    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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]