[nautilus/wip/exalm/dark: 141/141] application: Support dark preference




commit 55b0ae56f7409ed1e492fda6439d1c0000ff2510
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Dec 11 18:01:23 2021 +0500

    application: Support dark preference

 meson.build                | 2 +-
 src/nautilus-application.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 726c0d977..d480def03 100644
--- a/meson.build
+++ b/meson.build
@@ -120,7 +120,7 @@ gmodule = dependency('gmodule-no-export-2.0', version: glib_ver)
 gnome_autoar = dependency('gnome-autoar-0', version: '>= 0.4.0')
 gnome_desktop = dependency('gnome-desktop-3.0', version: '>= 3.0.0')
 gtk = dependency('gtk+-3.0', version: '>= 3.22.27')
-libhandy = dependency('libhandy-1', version: '>= 1.1.90')
+libhandy = dependency('libhandy-1', version: '>= 1.5.0')
 libportal = []
 if get_option('libportal')
   libportal = dependency('libportal', version: '>= 0.3')
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 973e1b521..8b586b05f 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1275,6 +1275,9 @@ nautilus_application_startup_common (NautilusApplication *self)
 
     hdy_init ();
 
+    hdy_style_manager_set_color_scheme (hdy_style_manager_get_default (),
+                                        HDY_COLOR_SCHEME_PREFER_LIGHT);
+
     gtk_window_set_default_icon_name (APPLICATION_ID);
 
     setup_theme_extensions ();


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