mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Improved layout shadow documentation
This commit is contained in:
committed by
Ivan Molodetskikh
parent
66d3a3bd82
commit
bd927b54e0
@@ -368,12 +368,13 @@ Shadow rendered behind a window.
|
|||||||
|
|
||||||
Set `on` to enable the shadow.
|
Set `on` to enable the shadow.
|
||||||
|
|
||||||
`softness` controls the shadow softness/size in logical pixels, same as CSS box-shadow *blur radius*.
|
`softness` controls the shadow softness/size in logical pixels, same as [CSS box-shadow] *blur radius*.
|
||||||
Setting `softness 0` will give you hard shadows.
|
Setting `softness 0` will give you hard shadows.
|
||||||
|
|
||||||
`spread` is the distance to expand the window rectangle in logical pixels, same as CSS box-shadow spread.
|
`spread` is the distance to expand the window rectangle in logical pixels, same as [CSS box-shadow] spread.
|
||||||
|
|
||||||
`offset` moves the shadow relative to the window in logical pixels, same as CSS box-shadow offset.
|
`offset` moves the shadow relative to the window in logical pixels, same as [CSS box-shadow] offset.
|
||||||
|
For example, `offset x=2 y=2` will move the shadow 2 logical pixels downwards and to the right.
|
||||||
|
|
||||||
Set `draw-behind-window` to `true` to make shadows draw behind the window rather than just around it.
|
Set `draw-behind-window` to `true` to make shadows draw behind the window rather than just around it.
|
||||||
Note that niri has no way of knowing about the CSD window corner radius.
|
Note that niri has no way of knowing about the CSD window corner radius.
|
||||||
@@ -406,6 +407,8 @@ layout {
|
|||||||
prefer-no-csd
|
prefer-no-csd
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[CSS box-shadow]: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
|
||||||
|
|
||||||
### `tab-indicator`
|
### `tab-indicator`
|
||||||
|
|
||||||
<sup>Since: 25.02</sup>
|
<sup>Since: 25.02</sup>
|
||||||
|
|||||||
Reference in New Issue
Block a user