[nautilus/wip/antoniof/gnome-42] application: Support dark preference



commit 9597d2192a9e7475f3638141e268c3fa10823e23
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 b324bc74a..06466a0b1 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 = []
 libportal_gtk3 = []
 if get_option('libportal')
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 89a26615f..3f3cc8999 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]