mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
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:
parent
5127136723
commit
3a0ced32bf
@ -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;
|
||||
|
@ -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); }
|
||||
|
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user