Unverified Commit edcfda2c authored by Erik Reider's avatar Erik Reider Committed by GitHub

Changed the CSS name of the transparent windows fixing GTK CSS overrides (#624)

parent 2ecc424b
......@@ -40,6 +40,10 @@
$margin: 8px;
notificationwindow, blankwindow, blankwindow {
background: transparent;
}
.close-button {
/* The notification Close Button */
background: var(--noti-close-bg);
......
......@@ -7,6 +7,7 @@ namespace SwayNotificationCenter {
private bool blank_window_in = false;
public BlankWindow (Gdk.Monitor monitor) {
Object (css_name: "blankwindow");
this.monitor = monitor;
blank_window_gesture = new Gtk.GestureClick ();
......
......@@ -24,6 +24,7 @@ namespace SwayNotificationCenter {
private string ? monitor_name = null;
public ControlCenter (SwayncDaemon swaync_daemon, NotiDaemon noti_daemon) {
Object (css_name: "blankwindow");
this.swaync_daemon = swaync_daemon;
this.noti_daemon = noti_daemon;
......
......@@ -43,6 +43,7 @@ namespace SwayNotificationCenter {
private const int MAX_HEIGHT = 600;
private NotificationWindow () {
Object (css_name: "notificationwindow");
if (swaync_daemon.use_layer_shell) {
if (!GtkLayerShell.is_supported ()) {
stderr.printf ("GTKLAYERSHELL IS NOT SUPPORTED!\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment