overlay: add theme setting snapping.preview.[region|edge].fill

This settings allows user to choose whether to draw a filled rectangle
or an outlined rectangle as the preview for window snapping.
This commit is contained in:
tokyo4j 2024-04-14 02:24:36 +09:00
parent bc25b34340
commit b1ba2b841a
8 changed files with 114 additions and 36 deletions

View file

@ -195,6 +195,16 @@ elements are not listed here, but are supported.
Height of boxes in workspace switcher in pixels. Setting to 0 disables
boxes. Default is 20.
*snapping.preview.region.fill* [yes|no]
Show a filled rectangle as the preview when a window is snapped to a region.
Otherwise, an outlined rectangle is shown instead.
If software rendering is used, an outlined rectangle is always shown.
*snapping.preview.edge.fill* [yes|no]
Show a filled rectangle as the preview when a window is snapped to an edge.
Otherwise, an outlined rectangle is shown instead.
If software rendering is used, an outlined rectangle is always shown.
*border.color*
Set all border colors. This is obsolete, but supported for backward
compatibility as some themes still contain it.

View file

@ -71,3 +71,6 @@ osd.window-switcher.item.active.border.width: 2
osd.workspace-switcher.boxes.width: 20
osd.workspace-switcher.boxes.height: 20
snapping.preview.region.fill: yes
snapping.preview.edge.fill: yes