[epiphany/wip/exalm/dark: 2/3] shell: Opt into dark preference




commit 98e87d748146a34cd0506c963ab8af5ff4b540d8
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Oct 6 13:54:52 2021 +0500

    shell: Opt into dark preference
    
    Bump the libhandy version requirement.

 meson.build      | 2 +-
 src/ephy-shell.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 74eee8a78..9f0f16aaa 100644
--- a/meson.build
+++ b/meson.build
@@ -92,7 +92,7 @@ iso_codes_dep = dependency('iso-codes', version: '>= 0.35')
 json_glib_dep = dependency('json-glib-1.0', version: '>= 1.6')
 libarchive_dep = dependency('libarchive')
 libdazzle_dep = dependency('libdazzle-1.0', version: '>= 3.37.1')
-libhandy_dep = dependency('libhandy-1', version: '>= 1.1.0')
+libhandy_dep = dependency('libhandy-1', version: '>= 1.5.0')
 libsecret_dep = dependency('libsecret-1', version: '>= 0.19.0')
 libxml_dep = dependency('libxml-2.0', version: '>= 2.6.12')
 nettle_dep = dependency('nettle', version: nettle_requirement)
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index d7d705bcf..ef4d84392 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -495,6 +495,9 @@ ephy_shell_startup (GApplication *application)
 
   hdy_init ();
 
+  hdy_style_manager_set_color_scheme (hdy_style_manager_get_default (),
+                                      HDY_COLOR_SCHEME_PREFER_LIGHT);
+
   /* If we are under Pantheon set the icon-theme and cursor-theme accordingly. */
   if (is_desktop_pantheon ()) {
     GtkSettings *settings = gtk_settings_get_default ();


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