How to change the highlighting color in JavaFX? Usually it is blue with gradients, but I would like to have a green highlighting. I have tried the following:
.root{
-fx-shadow-highlight-color: #CCFF99;
}
Thanks for help!
How to change the highlighting color in JavaFX? Usually it is blue with gradients, but I would like to have a green highlighting. I have tried the following:
.root{
-fx-shadow-highlight-color: #CCFF99;
}
Thanks for help!
Also you can use
-fx-highlight-fill
ontext-area
class selector.Look at caspian.css (JavaFX 2) or modena.css (JavaFX 8)
Change these colors according to their usages.
I think Uluk Biy has answered it great way.
But the reality is styling using CSS does not override the -fx-focus-color: #0093ff, rather it will overlap. If you use -fx-focus-color: red , it will get mixed with default blue color and show a shade of grey like color. The css attribute -fx-accent has no issues.