mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
If a border width in pts is non-zero have it result in a minimum 1px border
Change the default to 0.5pt instead of 1px
This commit is contained in:
@@ -332,7 +332,7 @@ class Window:
|
||||
def effective_border(self) -> int:
|
||||
val, unit = self.opts.window_border_width
|
||||
if unit == 'pt':
|
||||
val = pt_to_px(val, self.os_window_id)
|
||||
val = max(1 if val > 0 else 0, pt_to_px(val, self.os_window_id))
|
||||
else:
|
||||
val = round(val)
|
||||
return int(val)
|
||||
|
||||
Reference in New Issue
Block a user