mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
ssd: add window drop-shadows (#1648)
Add optional drop-shadows to windows using server-side decoration. Shadows can be enabled/disabled rc.xml and their appearance configured in themerc. The default is no shadows to preserve current behaviour. The shadows are drawn in fixed corner and edge buffers shared between all windows, the edges are scaled to size depending on the size of each window. Two sets of buffers are used to give the different appearances for active and inactive windows. I use separate corner/edge buffers for a few reasons: - It avoids needing to store a separate large shadow buffer per window - It avoids needing to redraw the shadows when the window is being resized - Compositing the shadows onto the desktop should be faster as there are overall fewer pixels to blend, and scaling up the edge buffers only requires reading a tiny buffer which is then replicated.
This commit is contained in:
parent
b0ba585ff8
commit
ce0d2c2966
13 changed files with 606 additions and 0 deletions
|
|
@ -130,6 +130,20 @@ This syntax is not documented on the openbox.org wiki, but is supported by
|
|||
openbox and is used by many popular themes. For the sake of brevity, these
|
||||
elements are not listed here, but are supported.
|
||||
|
||||
*window.active.shadow.size*
|
||||
Size of the drop-shadow for the focused window, in pixels. Default is 60.
|
||||
|
||||
*window.inactive.shadow.size*
|
||||
Size of drop-shadows for non-focused windows, in pixels. Default is 40.
|
||||
|
||||
*window.active.shadow.color*
|
||||
Color of the drop-shadow for the focused window, including opacity. Default
|
||||
is #00000060 (black with 38% opacity).
|
||||
|
||||
*window.inactive.shadow.color*
|
||||
Color of drop-shadows for non-focused windows, including opacity. Default is
|
||||
#00000040 (black with 25% opacity).
|
||||
|
||||
*menu.items.bg.color*
|
||||
Background color of inactive menu items.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue