title: Java FX Menu background color bug?
body: <p>So I am having a small problem which is pretty weird. I have styled my menu and menu bar of my undecorated application. If I hover a menu item in the context menu the menu will change it's background color to the default one of windows.</p>
  
  <p>Pictures of the scenario (in the second picture, I am hovering the 'Models' menu item):
  <a href="https://i.stack.imgur.com/AERyZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AERyZ.png" alt="Here I am hovering a menu which is doing its job."></a></p>
  
  <p><a href="https://i.stack.imgur.com/806bZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/806bZ.png" alt="If I hover one of my menu items, the menu it&#39;s background jumps to blue."></a></p>
  
  <p><a href="https://i.stack.imgur.com/WBaQu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WBaQu.png" alt="If I am not standing on the menu item with my mouse, the menu item will also have a blue background."></a></p>
  
  <p>Does anyone knows how to fix the blue backgrounds? I want the menu to have my hover background like in the first picture. And the menu item should have its own background also and not jump to blue if I am not with my mouse on it.</p>
  
  <p>CSS:</p>
  
  <pre><code>.menu-bar {
      -fx-background-color: transparent;
  }
  .menu {
      -fx-label-padding: 3px;
  }
  .menu .label, .menu-item .label {
      -fx-text-fill: #eee;
  }
  .menu:hover, .menu:focused, .menu:pressed {
      -fx-background-color: rgba(0, 0, 0, 0.2);
  }
  .menu-item:hover {
      -fx-background-color: rgba(0, 0, 0, 0.4);
  }
  .context-menu {
      -fx-background-color: rgba(0, 0, 0, 0.3);
  }
  </code></pre>
  
  <p>Thank you in advance.</p>