mirror of
https://github.com/labwc/labwc.git
synced 2026-02-12 04:27:57 -05:00
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:
parent
6e7f1b430f
commit
eb5e855b69
5 changed files with 23 additions and 3 deletions
|
|
@ -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 in this case, max 100%
|
||||
|
||||
*osd.window-switcher.padding*
|
||||
Padding of window switcher in pixels. This is the space between the
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue