title: JavaFX : Style combobox popup list text color and selected item color?
body: <p>I have problem with styling <code>ComboBox</code> in css. I don't know how to change font color of selected item fx (2 people from black color to red), and how to set color effect when you point mouse on the current choice.</p>
  
  <p>css code:</p>
  
  <pre><code>.combo-box
   {
    -fx-background-image:url("people_button.jpg");
    -fx-text-fill: red;
    -fx-min-width: 128;
    -fx-min-height: 48;
  
   }
  .combo-box-popup .list-view
   {
     -fx-background-color: -fx-box-border, -fx-control-inner-background;
     -fx-background-insets: 0, 1;
     -fx-effect: dropshadow( three-pass-box , rgba(0,0,0,0.6) , 8, 0.0 , 0 , 0 );
   }
  .combo-box-popup .list-view .list-cell
   {
  -fx-background-color: #ececec;
  -fx-text-fill: #9a9a9a;
  -fx-font-family: Oxygen Light;
   }
  </code></pre>
  
  <p>and java code:</p>
  
  <pre><code>ComboBox&lt;String&gt; combo = new ComboBox();
  combo.setVisibleRowCount(5);
  combo.setItems(observableList);
  combo.setValue("1 person");
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/jyzQH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jyzQH.png" alt="enter image description here"></a></p>