Reputation: 4204
I want to style default javaFX date picker to our custom theme, but i cant see any Documentation/Guide to change CSS proprties.
any help would be appricated
Default javaFX Calender style
I want to customize its color to match below guideline
Upvotes: 4
Views: 6474
Reputation: 116
The best documentation, in this case, can be default CSS file called modena.css. This style sheet is applied for every JavaFX components.
You can find this file in the JavaFX jar file jfxrt.jar (should be located /jdk1.8.x/jre/lib/ext/jfxrt.jar). After unzipping that jar file you should find the modena.css under com/sun/javafx/scene/control/skin/modena/
Find in the file a commented section DatePicker (in my file it's line# 2999) and you get all style properties that you are looking for.
Hope it helps.
Upvotes: 6