You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When customizing menu colors, you can change the selection color for a menu via Menu.selectionBackground and for a menu item via MenuItem.selectionBackground. However, it appears that Menu.selectionBackground applies to both the top level menu (e.g. JMenu in the menu bar) and any submenus (e.g. JMenu > JMenu in the drop down menu) as shown below.
Is it possible to have a different color for top level menus and submenus? Or is there a way to have submenus use the menu item colors?
The text was updated successfully, but these errors were encountered:
There are two new UI properties MenuBar.selectionBackground and MenuBar.selectionForeground that are used for top level menus (JMenu components in JMenuBar). See also https://www.formdev.com/flatlaf/components/menubar/
When customizing menu colors, you can change the selection color for a menu via
Menu.selectionBackground
and for a menu item viaMenuItem.selectionBackground
. However, it appears thatMenu.selectionBackground
applies to both the top level menu (e.g. JMenu in the menu bar) and any submenus (e.g. JMenu > JMenu in the drop down menu) as shown below.Is it possible to have a different color for top level menus and submenus? Or is there a way to have submenus use the menu item colors?
The text was updated successfully, but these errors were encountered: