-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
MenuItem left padding #3
Comments
@MioBlanco thanks for pointing out the possibilities. The idea is it to have a stable left padding that is always the same even if there are no icons and no check/radio items. The padding should be not too large (room for icon and checkbox) because this looks ugly. The solution used in the Windows LaF would be optimal, but the second solution would be also good IMO. |
- stable left margin (always space for one icon) - right aligned accelerators - larger gap between text and accelerator current limitations: - no HTML text support - text not vertically aligned with other menu items if icons have different sizes - vertical/horizontal alignment/textPosition properties are ignored (issues #3 and #54)
I've implemented a new menu item renderer in branch menu-layout. It uses currently the second variant described above by @MioBlanco |
…ustom icon, then use filled icon background to indicate selection (instead of using checkIcon) (issue #3)
@MioBlanco first variant is now implemented in master branch The accelerators are now right-aligned (as in Windows and macOS). Also a new menu selection style is now available: Can be enabled with: UIManager.put( "MenuItem.selectionType", "underline" ); |
Left padding of menu items is inconsistent:
The text was updated successfully, but these errors were encountered: