[gnome-disk-utility/wip/exalm/dark: 2/2] application: Support dark preference




commit 492a9712bd2daaff1d56f617e0402eafe4fc50c4
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Dec 11 21:00:45 2021 +0500

    application: Support dark preference
    
    Bump minimum libhandy version to 1.5.0; use a slightly newer commit for the
    subproject to include https://gitlab.gnome.org/GNOME/libhandy/-/merge_requests/793

 meson.build                | 2 +-
 src/disks/gduapplication.c | 2 ++
 subprojects/libhandy.wrap  | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index f5f69d76..86afd72a 100644
--- a/meson.build
+++ b/meson.build
@@ -74,7 +74,7 @@ gmodule_dep = dependency('gmodule-2.0')
 gtk_dep = dependency('gtk+-3.0', version: '>= 3.16.0')
 libcanberra_dep = dependency('libcanberra-gtk3', version: '>= 0.1')
 # Keep the version here synchronised with subprojects/libhandy.wrap
-libhandy_dep = dependency('libhandy-1', version: '>= 1.1.90', fallback: ['libhandy', 'libhandy_dep'])
+libhandy_dep = dependency('libhandy-1', version: '>= 1.5.0', fallback: ['libhandy', 'libhandy_dep'])
 liblzma_dep = dependency('liblzma', version: '>= 5.0.5')
 libnotify_dep = dependency('libnotify', version: '>= 0.7')
 libsecret_dep = dependency('libsecret-1', version: '>= 0.7')
diff --git a/src/disks/gduapplication.c b/src/disks/gduapplication.c
index 9689aebc..b97c3829 100644
--- a/src/disks/gduapplication.c
+++ b/src/disks/gduapplication.c
@@ -423,6 +423,8 @@ gdu_application_startup (GApplication *_app)
     G_APPLICATION_CLASS (gdu_application_parent_class)->startup (_app);
 
   hdy_init ();
+  hdy_style_manager_set_color_scheme (hdy_style_manager_get_default (),
+                                      HDY_COLOR_SCHEME_PREFER_LIGHT);
 
   g_action_map_add_action_entries (G_ACTION_MAP (app), app_entries, G_N_ELEMENTS (app_entries), app);
 
diff --git a/subprojects/libhandy.wrap b/subprojects/libhandy.wrap
index 24c18155..0ec55a48 100644
--- a/subprojects/libhandy.wrap
+++ b/subprojects/libhandy.wrap
@@ -2,4 +2,4 @@
 directory=libhandy
 url=https://gitlab.gnome.org/GNOME/libhandy.git
 # See comment in meson.build
-revision=e455f608e7a4ac4ab51e0bb70296f40862054f2b
+revision=6de728849ff1ac3dbed051146e9f094518d81b2f


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