title: Style ChoiceBox in JavaFX
body: <p>How can you style a ChoiceBox in JavaFX with CSS? The only things I have found out is how to change the background and the text color.</p>
  
  <pre><code>// Background Color
  .cb {
     -fx-background-color: #HEX;
  }
  
  // Text Color
  .cb .label {
     -fx-text-fill
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/dAm4W.png" alt="enter image description here"></p>
  
  <p>What I am still missing is the highlighting color when hovering the items and the background color of the dropdown list. Also the little arrow. Unfortunately I have found no documentation or anything that helps.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>@James_D gave a great link to find out stylings: <a href="http://hg.openjdk.java.net/openjfx/8/master/rt/file/f89b7dc932af/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css" rel="nofollow noreferrer">Modena.css</a></p>
  
  <p>That way I figured out how to color the white background black.</p>
  
  <pre><code>.cb .context-menu {
     -fx-background-color: black;
  }
  </code></pre>