Skip to content

Commit 2ca894d

Browse files
authored
Merge branch 'main' into lenemter/move-settings-to-application
2 parents 4c36884 + 0a2893b commit 2ca894d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Application.vala

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -21,9 +21,6 @@
2121
public 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",

0 commit comments

Comments
 (0)