Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: rounded borders for popups #964

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DevCharly
Copy link
Collaborator

This PR enables rounded borders on Linux (including drop shadow) for popups. (issue #949; see also PRs #643 and #772)

PopupMenu (Ubuntu 24.10):

grafik

macOS theme (running on Ubuntu 24.10) using larger corner radius for popup menus:

grafik

ComboBox:

grafik

ToolTip:

grafik

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:

2025-01-27_17-31-55.mp4

Components may paint over the rounded border corners. E.g. the red selection of a combobox popup:

grafik

If moving mouse down, rounded border in corners is still missing:

grafik

Artifacts in corners on KDE when using display scale:

grafik

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.

@DevCharly
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant