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

Separate check/radio icon from menu item icon #874

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

Conversation

ShadelessFox
Copy link
Contributor

This is what FlatLaf does, as of now:
sMRyPWdpYJ

It doesn't play well with non-contrast icons and ones that occupy the entire region they're painted on.

This is what I managed to achieve:
vNh6HiOiA5

Also, note that now the entire check/radio icon is painted instead of just the knob part. I quite like how it looks.

This behavior is disabled by default and can be enabled by setting property MenuItem.separateIconFromCheck to true.

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