Linux: rounded borders for popups
This PR enables rounded borders on Linux (including drop shadow) for popups. (issue #949; see also PRs #643 and #772)
PopupMenu (Ubuntu 24.10):
macOS theme (running on Ubuntu 24.10) using larger corner radius for popup menus:
ComboBox:
ToolTip:
The rounded popup borders are enabled by default for all themes and use the same UI properties and client property as in PRs #643 and #772.
Known issues
When popup becomes visible, the background is black for some milliseconds, which does not look very nice when moving mouse over menubar:
https://github.com/user-attachments/assets/bbe2d514-79e1-447b-bc1c-377e0538ac5b
Components may paint over the rounded border corners. E.g. the red selection of a combobox popup:
If moving mouse down, rounded border in corners is still missing:
Artifacts in corners on KDE when using display scale:
Feedback wanted
Currently, I've tested this only on Ubuntu 24.10 and on KDE neon 6.2. Would be great to get some feedback whether this works without problems on other Linux distros/versions.
A snapshot for this PR is now available.
Use PR-964-SNAPSHOT as version.
https://github.com/JFormDesigner/FlatLaf#snapshots
Prebuilt binaries (Artifacts) are available here (requires GitHub login): https://github.com/JFormDesigner/FlatLaf/actions/runs/12993337682
Hi,
Tested this on Manjaro with KDE Plasma v: 6.2.4. I did not notice any black out while moving the mouse over the menubar. On a 1440p screen with 1x scale the artifacts only appear briefly while moving the mouse over the menubar on the menu that is about to disappear. 1x on 4K and 2x on 4K the corner artifacts are always visible. 3x on 4K is like the 1440p case.
Hope this helps.
Hello. Linux ARM KDE (raspberry pi4). XRDP connection. Same issues. No other problems. Will show test at XFCE (next post).
Also some jigsaw with mac laf
In all cases - I don't saw bug with blinking menus.
AltLinux(loongarch) - XFCE, same as KDE.
Problem with comboBox, due items not rounded - moving to lead/tail position - broke popup border