Re: Dark styles bounded by unexpected white lines

John Ehresman <[email protected]> Wed, 5 Feb 2025 18:22:15 +1300
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
The QT_SCALE_FACTOR environment variable can be used to adjust the device pixel ratio. Setting it to 2.1 on macOS yields a device pixel ratio of 4.2 on a typical Mac high dpi screen.

I do see some artifacts with the QT_SCALE_FACTOR set to 2.1, including in non-Scintilla widgets — the popup option menus can leave partial item outlines as the mouse moves from one item to another (I’m using the Fusion style). In Scintilla, I see the white lines below text lines when I hold to select with the mouse and move it up and down to select and deselect lines, though I haven’t investigated why it happens

John.

> On Feb 4, 2025, at 11:56 PM, Neil Hodgson <[email protected]> wrote:
> 
> John:
> 
> Also is there a test case that shows the problem, preferably on macOS? 
> 
> I haven't seen this in any code I have built but I mostly do Qt on Windows and may be using different versions. Just ran the Haven demo app with Qt 6.4.3 with 150% and 125% scaling on Windows 10 and there is no apparent problem. Windows has multiple legacy modes that may be covering it up though.
> 
> Even Mitchell, the first poster here, hasn't reproduced the problem.
> 
> It's unlikely to occur on macOS since (at this level) macOS uses integer scaling: a logical pixel is either a single physical pixel or 2x2 physical pixels. It appears to me that the issue occurs due to fractional scaling like 125% and 150% where logical pixels share physical pixels with other logical pixels. macOS also has display fractional scaling but that is a lower level effect which occurs after the whole screen has been drawn.
> 
> Neil
> 
> -- 
> 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/c2e51481-c69b-4234-8083-a05cd4c1ff0en%40googlegroups.com.

-- 
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/B77AD0DB-BD8C-4A20-BBBD-153CEC214543%40wingware.com.