sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.29k stars 1.06k forks source link

JFXSlider rectangle balloon #1108

Closed ogrammer closed 3 years ago

ogrammer commented 4 years ago

Is it possible to make the "animated thumb" a rectangle? I tried setting background-insets to 0 but that made it a diamond which isn't what I want.

ogrammer commented 3 years ago

Solved by using

.jfx-slider .animated-thumb {
    -fx-pref-height: -1;
    -fx-background-radius: 0;
    -fx-rotate: 0;
}

.jfx-slider .animated-thumb > .slider-value {
    -fx-rotate: 0;
}