Window switcher, allow to use percent of monitor width.

OSD will size per monitor. With this the width stays relative sized on
my 4k as well as my 1080p monitor

example from my theme
osd.window-switcher.width: 60%
This commit is contained in:
Droc 2024-03-25 18:22:27 -05:00
parent 4fc6bce3ea
commit bda18df757
5 changed files with 17 additions and 2 deletions

View file

@ -164,6 +164,8 @@ elements are not listed here, but are supported.
*osd.window-switcher.width*
Width of window switcher in pixels. Default is 600.
Width can also be percent of the width of the monitor.
% is mandatory as last character, max 100%
*osd.window-switcher.padding*
Padding of window switcher in pixels. This is the space between the

View file

@ -60,7 +60,10 @@ osd.border.color: #000000
osd.border.width: 1
osd.label.text.color: #000000
# width can be set as percent (of screen width)
# example 50% or 75% instead of 600, max 100%
osd.window-switcher.width: 600
osd.window-switcher.padding: 4
osd.window-switcher.item.padding.x: 10
osd.window-switcher.item.padding.y: 1