ImpulseTheFox ImpulseTheFox -4 years ago 161
CSS Question

Remove the white line beneath a control in JavaFX

Styling

How do I remove that annoying little white line beneath the progress bar (and make it dark or light blue)? The buttons and the checkbox has the same white line, but they should be blue!

I've set:

-fx-text-box-border: #284a81;
-fx-control-inner-background: #284a81;

Answer Source

You need to make the -fx-shadow-highlight-color invisible:

.progress-bar {
    -fx-text-box-border: #284a81;
    -fx-control-inner-background: #284a81;
    -fx-shadow-highlight-color: transparent;
}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download