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:
Kovid Goyal
2020-08-30 15:26:37 +05:30
parent 3d60724651
commit 430eaefc3e
3 changed files with 3 additions and 3 deletions

View File

@@ -683,7 +683,7 @@ def window_border_width(x: Union[str, int, float]) -> Tuple[float, str]:
return max(0, val), unit
o('window_border_width', '1px', option_type=window_border_width, long_text=_('''
o('window_border_width', '0.5pt', option_type=window_border_width, long_text=_('''
The width of window borders. Can be either in pixels (px) or pts (pt). Values
in pts will be rounded to the nearest number of pixels based on screen
resolution. If not specified the unit is assumed to be pts.