JavaFx ComboBox customize dropdown menu

cssjavajavafx

I want to customize the dropdown menu of a combo bar. Looking at the next image enter image description here

I would like to change the blue hover bar, the hovered text color, text font as well as default text font.

Thank you very much.

-UPDATED-

I only achieved this

   comboBox.setStyle("-fx-background-image: url('" + ImageUtils.getPath() + "fieldTextBkg.png');"
            + "-fx-text-box-border: transparent;" 
            + "-fx-background-color: transparent, transparent, transparent, transparent;"
            + "-fx-text-alignment: center;");

that is only changing the unfolded menu. Whatever I am trying in order to modify the inner dropdown list, I am not possible to achieve. A start will be for example, the blue bar to be changed into Green. The whole background instead of white to be black, and text to be of font Calibri.

Thank you.

Best Answer

Here's a few explication :

 /*Edit The control itself*/
 .combo-box{

-fx-background-color:purple; 

 }

/*Edit Normal Cell color */
 .combo-box .list-cell{

-fx-background-color:red;


}

/*Edit Cell Color Only when cursor hover cell */
.combo-box .list-cell:hover{

-fx-background-color:green;
}

/*Edit Cell Color Only when selected */
.combo-box .list-cell:selected{

-fx-background-color:blue; 

}