Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions src/Application.vala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2023 elementary, Inc. (https://elementary.io)
* Copyright 2019-2025 elementary, Inc. (https://elementary.io)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
Expand All @@ -19,9 +19,6 @@
*/

public class Notifications.Application : Gtk.Application {
private static Granite.Settings granite_settings;
private static Gtk.Settings gtk_settings;

public Application () {
Object (
application_id: "io.elementary.notifications",
Expand All @@ -45,13 +42,6 @@ public class Notifications.Application : Gtk.Application {

Granite.init ();

granite_settings = Granite.Settings.get_default ();
gtk_settings = Gtk.Settings.get_default ();
gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;
granite_settings.notify["prefers-color-scheme"].connect (() => {
gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;
});

unowned var context = CanberraGtk4.context_get ();
context.change_props (
Canberra.PROP_APPLICATION_NAME, "Notifications",
Expand Down