[gnome-initial-setup: 1/3] Support GNOME 42 dark theme preference
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup: 1/3] Support GNOME 42 dark theme preference
- Date: Fri, 18 Feb 2022 21:04:25 +0000 (UTC)
commit d91dd17bd8169aa8f20a141f33b6c8298a573ee5
Author: Jeremy Bicha <jbicha debian org>
Date: Wed Feb 16 10:14:46 2022 -0500
Support GNOME 42 dark theme preference
.gitlab-ci/fedora.Dockerfile | 1 +
gnome-initial-setup/gnome-initial-setup.c | 4 ++++
gnome-initial-setup/meson.build | 1 +
3 files changed, 6 insertions(+)
---
diff --git a/.gitlab-ci/fedora.Dockerfile b/.gitlab-ci/fedora.Dockerfile
index 1af2ea26..ae428170 100644
--- a/.gitlab-ci/fedora.Dockerfile
+++ b/.gitlab-ci/fedora.Dockerfile
@@ -33,6 +33,7 @@ RUN dnf -y install \
"pkgconfig(gtk4)" \
"pkgconfig(gweather-3.0)" \
"pkgconfig(libgeoclue-2.0)" \
+ "pkgconfig(libhandy-1)" \
"pkgconfig(libnm)" \
"pkgconfig(libnma)" \
"pkgconfig(malcontent-ui-0)" \
diff --git a/gnome-initial-setup/gnome-initial-setup.c b/gnome-initial-setup/gnome-initial-setup.c
index a4c67110..245a1334 100644
--- a/gnome-initial-setup/gnome-initial-setup.c
+++ b/gnome-initial-setup/gnome-initial-setup.c
@@ -27,6 +27,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <glib/gi18n.h>
+#include <handy.h>
#ifdef HAVE_CHEESE
#include <cheese-gtk.h>
@@ -289,6 +290,9 @@ main (int argc, char *argv[])
#endif
gtk_init (&argc, &argv);
+ hdy_init ();
+ hdy_style_manager_set_color_scheme (hdy_style_manager_get_default (),
+ HDY_COLOR_SCHEME_PREFER_LIGHT);
g_message ("Starting gnome-initial-setup");
if (gis_get_mock_mode ())
diff --git a/gnome-initial-setup/meson.build b/gnome-initial-setup/meson.build
index 43321ec7..82b1e456 100644
--- a/gnome-initial-setup/meson.build
+++ b/gnome-initial-setup/meson.build
@@ -44,6 +44,7 @@ dependencies = [
dependency ('gdm', version: '>= 3.8.3'),
dependency ('geocode-glib-1.0'),
dependency ('libgeoclue-2.0', version: '>= 2.3.1'),
+ dependency ('libhandy-1', version: '>= 1.5.90'),
cc.find_library('m', required: false),
dependency ('pango', version: '>= 1.32.5'),
dependency ('rest-0.7'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]