[gtranslator: 2/3] app: Opt-in to dark mode




commit 3c0758acb3e422b662317bbbcce0ca7353684e0c
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Sat Mar 5 12:20:39 2022 +0100

    app: Opt-in to dark mode
    
    See https://gitlab.gnome.org/GNOME/Initiatives/-/issues/32

 meson.build           | 2 +-
 src/gtr-application.c | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 2e11f891..2ffc5b99 100644
--- a/meson.build
+++ b/meson.build
@@ -103,7 +103,7 @@ src_dir = join_paths(meson.source_root(), 'src')
 
 glib_dep = dependency('glib-2.0', version: '>= 2.36.0')
 gtk_dep = dependency('gtk+-3.0', version: '>= 3.22.20')
-libhandy_dep = dependency('libhandy-1', version: '>= 1.0.0')
+libhandy_dep = dependency('libhandy-1', version: '>= 1.5.0')
 
 gtr_deps = [
   glib_dep,
diff --git a/src/gtr-application.c b/src/gtr-application.c
index 473524e8..6f49440d 100644
--- a/src/gtr-application.c
+++ b/src/gtr-application.c
@@ -662,6 +662,10 @@ gtr_application_startup (GApplication *application)
 
   load_accels ();
 
+  /* TODO Remove in GTK 4 port */
+  hdy_style_manager_set_color_scheme (hdy_style_manager_get_default (),
+                                      HDY_COLOR_SCHEME_PREFER_LIGHT);
+
   /* We set the default icon dir */
   gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
                                      gtr_dirs_get_gtr_pixmaps_dir ());


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