[gnome-logs] Opt-in to dark mode user preference
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Opt-in to dark mode user preference
- Date: Thu, 6 Jan 2022 13:45:30 +0000 (UTC)
commit eb4e3ec190c2ae0a267437966c4a5c45cc67d37f
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Thu Jan 6 11:38:16 2022 +0100
Opt-in to dark mode user preference
data/gl-style.css | 4 ++--
meson.build | 2 +-
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]