Adwaita: Special-case server-side window decorations

The WM already adds the window shadow in that case, so just use the
box-shadow to add the border here.
This commit is contained in:
Florian Müllner 2014-12-18 14:18:50 +01:00
parent 5127136723
commit 3a0ced32bf
3 changed files with 8 additions and 0 deletions

View File

@ -3176,6 +3176,10 @@ GtkVolumeButton.button { padding: 8px; }
&.popup {
box-shadow: none;
}
// server-side decorations as used by mutter
&.ssd {
box-shadow: 0 0 0 1px $_wm_border; //just doing borders, wm draws actual shadows
}
&.csd {
.popup {
border-radius: 0;

View File

@ -4304,6 +4304,8 @@ GtkVolumeButton.button, .header-bar GtkVolumeButton.button.titlebutton,
border-radius: 0; }
.window-frame.popup {
box-shadow: none; }
.window-frame.ssd {
box-shadow: 0 0 0 1px rgba(28, 31, 31, 0.9); }
.window-frame.csd .popup {
border-radius: 0;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8); }

View File

@ -4474,6 +4474,8 @@ GtkVolumeButton.button, .header-bar GtkVolumeButton.button.titlebutton,
border-radius: 0; }
.window-frame.popup {
box-shadow: none; }
.window-frame.ssd {
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.23); }
.window-frame.csd .popup {
border-radius: 0;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }