From ae0728e2f150ab913ceb1d6fe88d8605f43e5053 Mon Sep 17 00:00:00 2001 From: System64 <72354122+AmirDahan@users.noreply.github.com> Date: Sat, 10 Feb 2024 16:13:10 +0200 Subject: [PATCH] Add control center visibility class (#371) This addresses https://github.com/ErikReider/SwayNotificationCenter/issues/359 --- src/controlCenter/controlCenter.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controlCenter/controlCenter.vala b/src/controlCenter/controlCenter.vala index 7321100..b768989 100644 --- a/src/controlCenter/controlCenter.vala +++ b/src/controlCenter/controlCenter.vala @@ -580,6 +580,10 @@ namespace SwayNotificationCenter { var group = (NotificationGroup) w; if (group != null) group.update (); } + this.get_style_context ().add_class ("open"); + } + else { + this.get_style_context ().remove_class ("open"); } swaync_daemon.subscribe_v2 (notification_count (), noti_daemon.dnd,