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




commit 204ba372fcb76f08c42a9acec479e2ed89f61e1c
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 927216636..55b7206cd 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]