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
2121public class Notifications.Application : Gtk .Application {
2222 public static Settings settings = new Settings (" io.elementary.notifications" );
2323
24- private static Granite . Settings granite_settings;
25- private static Gtk . Settings gtk_settings;
26-
2724 public Application () {
2825 Object (
2926 application_id: " io.elementary.notifications" ,
@@ -47,13 +44,6 @@ public class Notifications.Application : Gtk.Application {
4744
4845 Granite . init ();
4946
50- granite_settings = Granite . Settings . get_default ();
51- gtk_settings = Gtk . Settings . get_default ();
52- gtk_settings. gtk_application_prefer_dark_theme = granite_settings. prefers_color_scheme == Granite . Settings . ColorScheme . DARK ;
53- granite_settings. notify[" prefers-color-scheme" ]. connect (() = > {
54- gtk_settings. gtk_application_prefer_dark_theme = granite_settings. prefers_color_scheme == Granite . Settings . ColorScheme . DARK ;
55- });
56-
5747 unowned var context = CanberraGtk4 . context_get ();
5848 context. change_props (
5949 Canberra . PROP_APPLICATION_NAME , " Notifications" ,
You can’t perform that action at this time.
0 commit comments