diff options
| author | LunarEclipse <luna@lunareclipse.zone> | 2025-03-09 17:48:15 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-31 13:47:47 +0300 |
| commit | bd927b54e09d9f37356874d12b9e57dd28d2d837 (patch) | |
| tree | e3b322e341a3adee9e11fafe795e0f5b1e14922c | |
| parent | 66d3a3bd827878445aba3b17e9bff23c339df808 (diff) | |
| download | niri-bd927b54e09d9f37356874d12b9e57dd28d2d837.tar.gz niri-bd927b54e09d9f37356874d12b9e57dd28d2d837.tar.bz2 niri-bd927b54e09d9f37356874d12b9e57dd28d2d837.zip | |
Improved layout shadow documentation
| -rw-r--r-- | wiki/Configuration:-Layout.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/wiki/Configuration:-Layout.md b/wiki/Configuration:-Layout.md index 7dbbced8..08c3871a 100644 --- a/wiki/Configuration:-Layout.md +++ b/wiki/Configuration:-Layout.md @@ -368,12 +368,13 @@ Shadow rendered behind a window. 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. -`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. Note that niri has no way of knowing about the CSD window corner radius. @@ -406,6 +407,8 @@ layout { prefer-no-csd ``` +[CSS box-shadow]: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow + ### `tab-indicator` <sup>Since: 25.02</sup> |
