How do i change the color of a slider track track in Javafx using css?

Viewed 5507

I have a music player and i am trying to change the slider track color and not just the border color when i do

-fx-background-color: it changes the border background color -fx-color: changes the slider dot

i tried -fx-track-fill: it doesnt work.

this is what i have:

.root
{
    -fx-background-color: #383838;
}
.vbox
{
    -fx-background-color: #549534;
}
.button
{
    -fx-background-color: linear-gradient(#dc9656,#ab4642);
    -fx-text-fill: #ffffff;

}
.label
{
    -fx-text-fill: #ffffff;
}
.slider
{
     -fx-background-color: linear-gradient(#dc9656,#ab4642);
     -fx-color:#549534;
}
1 Answers
Related