Skip to content

Commit 0a2893b

Browse files
authored
Don't set dark/light style manually (#268)
1 parent a3e59f5 commit 0a2893b

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
@@ -19,9 +19,6 @@
1919
*/
2020

2121
public 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",

0 commit comments

Comments
 (0)