From 347a5f119d260ea11e695a5da06242727fb2f828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 4 Dec 2025 09:19:56 -0800 Subject: [PATCH] Application: rely on Granite.StyleManager --- src/Application.vala | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Application.vala b/src/Application.vala index 92f162f3..eea910c0 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -14,15 +14,6 @@ public class Dock.Application : Gtk.Application { Granite.init (); ShellKeyGrabber.init (); GalaDBus.init.begin (); - - unowned var granite_settings = Granite.Settings.get_default (); - unowned var gtk_settings = Gtk.Settings.get_default (); - - granite_settings.notify["prefers-color-scheme"].connect (() => - gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == DARK - ); - - gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == DARK; } protected override void activate () {