Better line sizes for box drawing

This commit is contained in:
Kovid Goyal 2017-01-08 22:06:24 +05:30
parent 729b94fbe7
commit 3e289a57f9

View File

@ -10,7 +10,7 @@ from kitty.utils import get_logical_dpi
def thickness(level=1, horizontal=True):
dpi = get_logical_dpi()[0 if horizontal else 1]
pts = (1, 1, 2, 4)[level]
pts = (0.001, 1, 1.2, 3)[level]
return int(math.ceil(pts * dpi / 72.0))