Search code examples
cssjavafx-11jfoenix

JFXDatePicker change style of current date


Pop-up calender of JFXDatePicker showing current date in "default colour" and rest of dates are in black color. As per my application, I configured default color as blue. So not able to differentiate blue and black much. So I want to change the style of current date.

i.e., I want to change the font color of current date and also highlight it with grey color.

How to achieve this? I am very new to JavaFx. Not able to find much help online. Please help me on this


Solution

  • Finally found the answer after spending many hours in debugging:

    .today {
        -fx-border-color: grey;
        -fx-border-radius: 40px;
        -fx-font-weight: bold;
        -fx-font-size: 14;
    }
    

    Resources helped me to find the answer: