Karl T

Results 244 comments of Karl T

This happens if you use **dark system appearance** and a light FlatLaf theme. With **light system appearance** is looks fine: This is actually not a FlatLaf related issue because macOS...

> This would make it unnecessary to include (unsigned) DLLs in FlatLaF The Windows DLL and macOS dylib are signed. (but not using an Apple certificate) Linux .so libraries are...

@IAmBaguette thanks for the detailed report and the screencasts. Very useful 👍 Unfortunately I can not reproduce the issue on my systems... What happens if you use the flag `-Dflatlaf.useWindowDecorations=false`?...

I think that following lines, which are invoked before setting rounded popup border, could cause the problem: https://github.com/JFormDesigner/FlatLaf/blob/09f2d65d5eb64f9c7c11fc547bcb36d0d7bad2c6/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java#L367-L369 `addNotify()` creates the native window and also invokes some DirectDraw code. I'll...

Could you please try latest `3.5.2-SNAPSHOT`: https://github.com/JFormDesigner/FlatLaf#snapshots Hope this change fixes the problem...

It could be a general Swing issue with "heavy-weight" popup windows, which are used if the popup does not fit into the owner window. If the popup fits into the...

@IAmBaguette thanks for testing and confirming that this is can also happen in other L&Fs. So it is actually not a FlatLaf bug. Not sure whether it makes sense to...

Great that `sun.java2d.d3d.onscreen=false` fixes the issue. Compared to `sun.java2d.d3d=false` (same as `sun.java2d.noddraw=true`), `sun.java2d.d3d.onscreen=false` has the advantage that only a part of Java's Direct3D usage is disabled. Component rendering (via class...

@IAmBaguette you mentioned in this comment https://github.com/JFormDesigner/FlatLaf/issues/887#issuecomment-2409099659 that the redraw issue appears only if the menu contains 6 or fewer menu items. There is [some code](https://github.com/openjdk/jdk/blob/5eae20f73b9e8578d58c7e49d2da79cf1b0b229c/src/java.desktop/windows/classes/sun/java2d/d3d/D3DScreenUpdateManager.java#L226) in method `sun.java2d.d3d.D3DScreenUpdateManager.canUseD3DOnScreen()` that...