osd: support percent values for window switcher width

Add ability to set width with percentage of monitor instead of just pixels.
With this the OSD sizes itself properly on both my 4k and 2k monitors.

example: 50% or 75% instead of 600, max 100%
This commit is contained in:
Droc 2024-03-26 05:12:19 -05:00 committed by Consolatis
parent 6e7f1b430f
commit eb5e855b69
5 changed files with 23 additions and 3 deletions

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