mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
Better line sizes for box drawing
This commit is contained in:
parent
729b94fbe7
commit
3e289a57f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue