config: add cursor.underline-thickness

Works in pretty much the same way as ‘beam-thickness’, except that the
default value is “the font’s underline thickness”.

This means, that when unset, the cursor underline thickness scales
with the font size.

But, when explicitly set, either to a point size value, or a pixel
size, it remains fixed at that size.

Closes #524
This commit is contained in:
Daniel Eklöf 2021-05-18 18:52:10 +02:00
parent af428d544f
commit 1b5c849994
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 71 additions and 21 deletions

View file

@ -344,9 +344,21 @@ applications can change these at runtime.
*beam-thickness*
Thickness (width) of the beam styled cursor. The value is in
_points_, and its exact value thus depends on the monitor's
DPI. To instead specify a thickness in _pixels_, use the *px*
suffix: e.g. *beam-thickness=2px*. Default: _1.5_
points, and its exact value thus depends on the monitor's DPI. To
instead specify a thickness in pixels, use the *px* suffix:
e.g. *beam-thickness=2px*. Default: _1.5_
*underline-thickness*
Thickness (height) of the underline styled cursor. The value is in
points, and its exact value thus depends on the monitor's DPI.
To instead specify a thickness in pixels, use the *px* suffix:
e.g. *underline-thickness=2px*.
Note that if left unset, the cursor's thickness will scale with
the font size, while if set, the size is fixed.
Default: _font underline thickness_.
# SECTION: mouse