config: add setting for underline thickness

This adds an "underline-thickness" setting to the "main" section,
similar to the existing "underline-offset" setting. This setting is used
to specify a custom height for regular (= non-cursor) underlines.

Fixes #1136
This commit is contained in:
Yorick Peterse 2022-08-19 02:54:49 +02:00
parent 65ecb77737
commit a0942f950d
No known key found for this signature in database
GPG key ID: EDD30D2BEB691AC9
7 changed files with 29 additions and 1 deletions

View file

@ -470,6 +470,7 @@ test_section_main(void)
test_pt_or_px(&ctx, &parse_section_main, "letter-spacing", &conf.letter_spacing);
test_pt_or_px(&ctx, &parse_section_main, "horizontal-letter-offset", &conf.horizontal_letter_offset);
test_pt_or_px(&ctx, &parse_section_main, "vertical-letter-offset", &conf.vertical_letter_offset);
test_pt_or_px(&ctx, &parse_section_main, "underline-thickness", &conf.underline_thickness);
test_uint16(&ctx, &parse_section_main, "resize-delay-ms", &conf.resize_delay_ms);
test_uint16(&ctx, &parse_section_main, "workers", &conf.render_worker_count);