mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Better line sizes for box drawing
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user