Add control center visibility class (#371)

This addresses https://github.com/ErikReider/SwayNotificationCenter/issues/359
This commit is contained in:
System64 2024-02-10 16:13:10 +02:00 committed by GitHub
parent 42b9050950
commit ae0728e2f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,