From 40a017662f1020bc1e664f32fcbfa493f506d837 Mon Sep 17 00:00:00 2001 From: lenemter Date: Mon, 6 Oct 2025 10:55:19 +0300 Subject: [PATCH 1/2] Don't set dark/light style manually --- src/Application.vala | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Application.vala b/src/Application.vala index 9685a898..a90daaa1 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -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", @@ -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", From cf6a8739e278c423bdab345d0a89192930a566b6 Mon Sep 17 00:00:00 2001 From: lenemter Date: Mon, 6 Oct 2025 10:56:26 +0300 Subject: [PATCH 2/2] Update copyright --- src/Application.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application.vala b/src/Application.vala index a90daaa1..393b6480 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -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