From 02e59fd820841300eb2ec0b187e2c21f5088fccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 4 Dec 2025 09:24:46 -0800 Subject: [PATCH] Application: rely on Granite.StyleManager --- README.md | 2 +- meson.build | 2 +- src/Application.vala | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 7536e591c..d1ad2f1ca 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ You'll need the following dependencies: * libadwaita-1-dev * glib-2.0 * gobject-2.0 -* granite-7 >=7.0.0 +* granite-7 >=7.7.0 * gtk4 >=4.12 * libecal-2.0 * libedataserver-1.2 diff --git a/meson.build b/meson.build index 07f1293bd..75b972266 100644 --- a/meson.build +++ b/meson.build @@ -30,7 +30,7 @@ libecal_dep = dependency('libecal-2.0') tasks_deps = [ dependency('glib-2.0', version: '>=2.68'), dependency('gobject-2.0'), - dependency('granite-7', version: '>=7.0.0'), + dependency('granite-7', version: '>=7.7.0'), dependency('gtk4', version: '>=4.12'), libecal_dep, dependency('libadwaita-1', version: '>=1.4'), diff --git a/src/Application.vala b/src/Application.vala index 4de520034..3bcbd2d81 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -56,15 +56,6 @@ public class Tasks.Application : Gtk.Application { Granite.init (); - unowned var granite_settings = Granite.Settings.get_default (); - unowned var gtk_settings = Gtk.Settings.get_default (); - - gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == DARK; - - granite_settings.notify["prefers-color-scheme"].connect ((obj, pspec) => { - gtk_settings.gtk_application_prefer_dark_theme = ((Granite.Settings) obj).prefers_color_scheme == DARK; - }); - var quit_action = new SimpleAction ("quit", null); quit_action.activate.connect (() => { if (active_window != null) {