lite-plugins icon indicating copy to clipboard operation
lite-plugins copied to clipboard

Improve calculating method for width of indent line

Open Jipok opened this issue 4 years ago • 1 comments

They're too fat for me now. Before: screenshot After witch style.guide_width = 1 : image

Jipok avatar Nov 05 '20 20:11 Jipok

Perhaps I shouldn't produce unnecessary entities. @rxi, why did you choose math.ceil(1 * SCALE)? This gives a thickness of 2 pixels already with SCALE == 1.01. Looks too thick even with my SCALE == 1.25 I suggest using math.floor(SCALE + 0.5). Then no additional option is required. The thickness will become 2 pixels after SCALE == 1.5. I checked it looks fine, much better than the current version.

Jipok avatar Nov 06 '20 08:11 Jipok