diff options
author | Maximiliano Sandoval R <msandova@gnome.org> | 2022-01-06 11:38:16 +0100 |
---|---|---|
committer | Maximiliano Sandoval R <msandova@gnome.org> | 2022-01-06 12:24:44 +0100 |
commit | eb4e3ec190c2ae0a267437966c4a5c45cc67d37f (patch) | |
tree | 97dfd5e6cffa672a7e40c4141dd9f0f92198ecb0 | |
parent | 7c227705e444e18844c5c20d8e5bb4b1c632a8b3 (diff) | |
download | gnome-logs-eb4e3ec190c2ae0a267437966c4a5c45cc67d37f.tar.gz |
Opt-in to dark mode user preference
-rw-r--r-- | data/gl-style.css | 4 | ||||
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | src/gl-application.c | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/data/gl-style.css b/data/gl-style.css index fb9ab90..f98a66c 100644 --- a/data/gl-style.css +++ b/data/gl-style.css @@ -32,8 +32,8 @@ } .compressed-entries-label { - background-color: shade(@borders, 1.15); - color: @theme_selected_fg_color; + background-color: alpha(@theme_fg_color, 0.6); + color: @theme_bg_color; font-size: small; border-radius: 3px; padding-left: 5px; diff --git a/meson.build b/meson.build index bdbe4d3..e08fdc6 100644 --- a/meson.build +++ b/meson.build @@ -71,7 +71,7 @@ endif gl_deps = [ dependency('gio-unix-2.0', version : '>=2.43.90'), dependency('gtk+-3.0', version : '>=3.22.0'), - dependency('libhandy-1', version : '>=1.2.0'), + dependency('libhandy-1', version : '>=1.5.0'), dependency('libsystemd') ] diff --git a/src/gl-application.c b/src/gl-application.c index 8f13a5d..19d837f 100644 --- a/src/gl-application.c +++ b/src/gl-application.c @@ -206,6 +206,10 @@ gl_application_startup (GApplication *application) /* gtk_init() calls setlocale(), so gettext must be called after that. */ g_set_application_name (_(PACKAGE_NAME)); gtk_window_set_default_icon_name (PACKAGE_TARNAME); + + /* Opt-in to color scheme user preference. */ + hdy_style_manager_set_color_scheme (hdy_style_manager_get_default (), + HDY_COLOR_SCHEME_PREFER_LIGHT); } static void |