I am creating new application in Javafx and I have created Menu bar from javafx fxml and for that css is used to style it. But problem is that parent menu background changes to blue when I hover to sub menu item.
To do that, not only the context-menu class needs a custom rule, but also the menu-item and menu classes, e.g.:
.menu, .menu-item, .context-menu {
-fx-background-color: crimson;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With