css: Add a special chroma key color and use it on .workspace-background

There's no visible change here since we're just moving from the
default transparent black to transparent other. But the latter can
be used as a special value to indicate to the rendering code when a
background is expected to be always occluded.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1915>
This commit is contained in:
Daniel van Vugt
2021-07-15 14:18:48 +08:00
committed by Marge Bot
parent 5de3491df3
commit 436fd81cfc
2 changed files with 6 additions and 0 deletions

View File

@@ -48,5 +48,6 @@ $window_close_button_padding: 3px;
.workspace-background {
// keep in sync with BACKGROUND_CORNER_RADIUS_PIXELS in workspace.js
border-radius: 30px;
background-color: $invisible_occluded_bg_color;
box-shadow: 0 4px 16px 4px transparentize(darken($osd_bg_color, 30%), 0.7);
}