overlay: s/preview/overlay/

Replace "preview" in rc.xml and themerc with "overlay" since "preview" sounds
like it shows the window content.

Breaking changes are:
- `snapping.preview.*` in themerc is now replaced with `snapping.overlay`.
- `<snapping><preview>` in rc.xml is now replaced with `<snapping><overlay>`.
This commit is contained in:
tokyo4j 2024-04-21 02:22:28 +09:00 committed by Johan Malm
parent 3f10857496
commit 34290ef629
9 changed files with 97 additions and 97 deletions

View file

@ -322,12 +322,12 @@ extending outward from the snapped edge.
SnapToEdge action for that edge. A *range* of 0 disables snapping via
interactive moves. Default is 1.
*<snapping><preview><enabled>* [yes|no]
Show a preview when snapping to a window to an edge. Default is yes.
*<snapping><overlay><enabled>* [yes|no]
Show an overlay when snapping to a window to an edge. Default is yes.
*<snapping><preview><delay><inner>*++
*<snapping><preview><delay><outer>*
Sets the delay to show a preview when snapping a window to each type of
*<snapping><overlay><delay><inner>*++
*<snapping><overlay><delay><outer>*
Sets the delay to show an overlay when snapping a window to each type of
edge. Defaults are 500 ms.
*inner* edges are edges with an adjacent output and *outer* edges are
edges without an adjacent output.

View file

@ -210,39 +210,39 @@ 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.
*snapping.overlay.region.fill* [yes|no]
Show a filled rectangle as an overlay 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.
*snapping.overlay.edge.fill* [yes|no]
Show a filled rectangle as an overlay 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.
*snapping.preview.region.bg.color*
Color of a filled rectangle shown as the preview when a window is snapped to
*snapping.overlay.region.bg.color*
Color of a filled rectangle shown as an overlay when a window is snapped to
a region. Default is #8080b380.
*snapping.preview.edge.bg.color*
Color of a filled rectangle shown as the preview when a window is snapped to
*snapping.overlay.edge.bg.color*
Color of a filled rectangle shown as an overlay when a window is snapped to
an edge. Default is #8080b380.
*snapping.preview.region.border.width*
Border width of an outlined rectangle shown as the preview when a window is
*snapping.overlay.region.border.width*
Border width of an outlined rectangle shown as an overlay when a window is
snapped to a region. Inherits `osd.border.width` if not set.
*snapping.preview.edge.border.width*
*snapping.overlay.edge.border.width*
Border width of an outlined rectangle shown as the preview when a window is
snapped to an edge. Inherits `osd.border.width` if not set.
*snapping.preview.region.border.color*
Color(s) of an outlined rectangle shown as the preview when a window is
*snapping.overlay.region.border.color*
Color(s) of an outlined rectangle shown as an overlay when a window is
snapped to a region. Possible values and the default value are the same as
those of *osd.window-switcher.preview.border.color*.
*snapping.preview.edge.border.color*
Color(s) of an outlined rectangle shown as the preview when a window is
*snapping.overlay.edge.border.color*
Color(s) of an outlined rectangle shown as an overlay when a window is
snapped to an edge. Possible values and the default value are the same as
those of *osd.window-switcher.preview.border.color*.

View file

@ -114,9 +114,9 @@
<snapping>
<!-- Set range to 0 to disable window snapping completely -->
<range>1</range>
<preview enabled="yes">
<overlay enabled="yes">
<delay inner="500" outer="500" />
</preview>
</overlay>
<topMaximize>yes</topMaximize>
<notifyClient>always</notifyClient>
</snapping>

View file

@ -74,11 +74,11 @@ osd.window-switcher.preview.border.color: #dddda6,#000000,#dddda6
osd.workspace-switcher.boxes.width: 20
osd.workspace-switcher.boxes.height: 20
snapping.preview.region.fill: yes
snapping.preview.edge.fill: yes
snapping.preview.region.bg.color: #8080b380
snapping.preview.edge.bg.color: #8080b380
snapping.preview.region.border.width: 1
snapping.preview.edge.border.width: 1
snapping.preview.region.border.color: #dddda6,#000000,#dddda6
snapping.preview.edge.border.color: #dddda6,#000000,#dddda6
snapping.overlay.region.fill: yes
snapping.overlay.edge.fill: yes
snapping.overlay.region.bg.color: #8080b380
snapping.overlay.edge.bg.color: #8080b380
snapping.overlay.region.border.width: 1
snapping.overlay.edge.border.width: 1
snapping.overlay.region.border.color: #dddda6,#000000,#dddda6
snapping.overlay.edge.border.color: #dddda6,#000000,#dddda6