Remove all focus borders from JavaFX
<p>While working with JavaFX, I found the focus border to be hindering on some visual nodes, like buttons and certain panes. Other questions on this topic on SO often suggest adding the following css (overriding the defaults from Modena.css, the default stylesheet for JavaFX 8) to your style file:</p>

<pre><code>-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
</code></pre>

<p>At first glance, this removes the focus borders, but after some use I found that some UI elements were missing more than just that blue glow. After going through modena, I found that this is because of the way a lot of the nodes are drawn: many of them have a background color consisting of multiple boxes stacked on top of each other with different insets and radii, resulting in a border-like look.</p>

<p>I have also found that this background color derives from the previously mentioned properties for drawing a border. Hence setting the colors to transparent has the unintended effect that certain nodes (like panes, comboboxes, ...) show a border when not focused, but not anymore when they are focused, due to the way the background color is derived for the <code>:focused</code> pseudo-class.</p>

<p>Is it possible to remove the focus border (and faint focus border) so they retain the look of an unfocused element when they are in fact focused?</p>