livesplit-core icon indicating copy to clipboard operation
livesplit-core copied to clipboard

Adjust splits column width based on the current font

Open CryZe opened this issue 3 years ago • 2 comments

In the original LiveSplit we measure the width of 88:88:88 I believe and use that as the column width. We should do something similar here instead of hardcoding a width.

CryZe avatar Dec 19 '21 14:12 CryZe

LiveSplit uses 9:00:00 for deltas and 24:00:00 otherwise (source). Would this require a new function on ResourceAllocator just for querying the width of a given string? Or should it be even more specific and take the number of digits/colons as function arguments?

kadiwa4 avatar Dec 29 '21 18:12 kadiwa4

Nah, I'd say the splits simply should have labels for these around.

CryZe avatar Dec 29 '21 18:12 CryZe