Re: Patch for SC_MARK_BAR to have a minimum width
Mitchell <[email protected]> Wed, 9 Apr 2025 18:51:23 -0400
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Neil, > On Apr 9, 2025, at 6:40 PM, 'Neil Hodgson' via scintilla-interest <[email protected]> wrote: > > Hi Mitchell, > >> I like to use a thin margin for markers in conjunction with SC_MARK_LEFTRECT. If I enable change history, the change history markers are drawn a single pixel in width. I’d like to propose a minimum width: 4 pixels (2 for the left and right foreground border, and 2 for the background fill). > > 2 and 3 pixel wide bars seem reasonable to me and are used by other applications. 2 pixel wide bars don't have space for any background fill but just showing the frame colour is a fine decay path. > > Even 1 pixel isn't dreadful if you place another light-coloured margin to the left (like line numbers). On low-resolution (800x600) screens it's fairly clear. > > Some tweaks to the size could be made like using ceil instead of floor on the width but requiring it to always be at least 4 pixels wide seems limiting to me. I felt like 4 pixels is the minimum that allows a visual distinction between foreground and background. That said, I’ll take anything more than the current 1 pixel minimum. I’m on a Retina display and 1 pixel is not pleasant, no matter what margin it’s next to. Cheers, Mitchell -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/6E016BCE-426B-442E-B448-D7A3CF04214A%40foicica.com.