Styling: MenuItem: support styling acceleratorFont

Theme Editor:
- support font keys in auto-completion
- ignore Menu.acceleratorFont, CheckBoxMenuItem.acceleratorFont and RadioButtonMenuItem.acceleratorFont because they are never used (keep UI values for backward compatibility)
This commit is contained in:
Karl Tauber
2021-12-11 11:17:53 +01:00
parent 6205e18c45
commit 2164bd363b
6 changed files with 16 additions and 15 deletions

View File

@@ -78,7 +78,7 @@ public class FlatMenuItemRenderer
protected final JMenuItem menuItem;
protected Icon checkIcon;
protected Icon arrowIcon;
protected final Font acceleratorFont;
@Styleable protected Font acceleratorFont;
protected final String acceleratorDelimiter;
/** @since 2 */ @Styleable protected boolean verticallyAlignText = FlatUIUtils.getUIBoolean( "MenuItem.verticallyAlignText", true );