File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2019-2023 elementary, Inc. (https://elementary.io)
2+ * Copyright 2019-2025 elementary, Inc. (https://elementary.io)
33*
44* This program is free software; you can redistribute it and/or
55* modify it under the terms of the GNU General Public
1919*/
2020
2121public class Notifications.Application : Gtk .Application {
22- private static Granite . Settings granite_settings;
23- private static Gtk . Settings gtk_settings;
24-
2522 public Application () {
2623 Object (
2724 application_id: " io.elementary.notifications" ,
@@ -45,13 +42,6 @@ public class Notifications.Application : Gtk.Application {
4542
4643 Granite . init ();
4744
48- granite_settings = Granite . Settings . get_default ();
49- gtk_settings = Gtk . Settings . get_default ();
50- gtk_settings. gtk_application_prefer_dark_theme = granite_settings. prefers_color_scheme == Granite . Settings . ColorScheme . DARK ;
51- granite_settings. notify[" prefers-color-scheme" ]. connect (() = > {
52- gtk_settings. gtk_application_prefer_dark_theme = granite_settings. prefers_color_scheme == Granite . Settings . ColorScheme . DARK ;
53- });
54-
5545 unowned var context = CanberraGtk4 . context_get ();
5646 context. change_props (
5747 Canberra . PROP_APPLICATION_NAME , " Notifications" ,
You can’t perform that action at this time.
0 commit comments