From 68217b067dcd01f5dcca62d2f25e658cabdc6cdb Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 31 May 2017 17:58:32 -0400 Subject: BlackMATE: more CSD app fixes Fix CDS window control button image behavior in backdrop, fix grey squares around CSD windows in some WM's (mutter, etc) --- desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css | 20 ++++++++++++++++++++ desktop-themes/BlackMATE/gtk-3.0/window-controls.css | 14 +++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css b/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css index 57bd6080..d95b9973 100644 --- a/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css +++ b/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css @@ -2939,6 +2939,26 @@ popover .separator { * CSD * *******/ +/*mostly taken from Adwaita except the border radius */ +decoration { + border-radius: 7px 7px 0px 0px; + border-width: 1px; + box-shadow: 0 3px 9px 1px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.23); + /* this is used for the resize cursor area */ + margin: 10px; + padding: 0px; +} + +/*Limit CSD shadow extent to deal with any WM CSD/GtkFrameExtent issues */ +.csd decoration { + border-radius: 7px 7px 0px 0px; + border-width: 1px; + box-shadow: 0 3px 3px 1px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.23); + /* this is used for the resize cursor area */ + margin: 10px; + padding: 0px; +} + headerbar, .titlebar { border-width: 0 0 1px; diff --git a/desktop-themes/BlackMATE/gtk-3.0/window-controls.css b/desktop-themes/BlackMATE/gtk-3.0/window-controls.css index 75d84d41..63d47c9d 100644 --- a/desktop-themes/BlackMATE/gtk-3.0/window-controls.css +++ b/desktop-themes/BlackMATE/gtk-3.0/window-controls.css @@ -7,17 +7,29 @@ headerbar button.maximize.titlebutton:backdrop, headerbar button.close.titlebutton:backdrop, /*other WMs*/ headerbar .right button.minimize.titlebutton, +headerbar .right button.minimize.titlebutton:backdrop, headerbar .right:dir(rtl) button.minimize.titlebutton, +headerbar .right:dir(rtl) button.minimize.titlebutton:backdrop, headerbar .left button.minimize.titlebutton, +headerbar .left button.minimize.titlebutton:backdrop, headerbar .left:dir(rtl) button.minimize.titlebutton, +headerbar .left:dir(rtl) button.minimize.titlebutton:backdrop, headerbar .right button.maximize.titlebutton, +headerbar .right button.maximize.titlebutton:backdrop, headerbar .right:dir(rtl) button.maximize.titlebutton, +headerbar .right:dir(rtl) button.maximize.titlebutton:backdrop, headerbar .left button.maximize.titlebutton, +headerbar .left button.maximize.titlebutton:backdrop, headerbar .left:dir(rtl) button.maximize.titlebutton, +headerbar .left:dir(rtl) button.maximize.titlebutton:backdrop, headerbar .right button.close.titlebutton, +headerbar .right button.close.titlebutton:backdrop, headerbar .right:dir(rtl) button.close.titlebutton, +headerbar .right:dir(rtl) button.close.titlebutton:backdrop, headerbar .left button.close.titlebutton, -headerbar .left:dir(rtl) button.close.titlebutton { +headerbar .left button.close.titlebutton:backdrop, +headerbar .left:dir(rtl) button.close.titlebutton, +headerbar .left:dir(rtl) button.close.titlebutton:backdrop { color: transparent; background-position: center; background-repeat: no-repeat; -- cgit v1.2.1