### Slider Change style

Create your own stylesheet and override some of the style classes from the default css for a slider.
.slider .axis {
-fx-tick-label-font: 0.833333em System;
}
Here is a reproduction of the default css for slider from:
http://hg.openjdk.java.net/openjfx/2.2/master/rt/raw-file/tip/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/caspian.css
.slider {
-fx-skin: "com.sun.javafx.scene.control.skin.SliderSkin";
}
.slider .thumb {
-fx-background-color:
derive(-fx-color,-36%),
derive(-fx-color,73%),
linear-gradient(to bottom, derive(-fx-color,-19%),derive(-fx-color,61%));
-fx-background-insets: 0, 1, 2;
-fx-background-radius: 1.0em; /* makes sure this remains circular */
-fx-padding: 0.583333em; /* 7 */
}
.slider:focused .thumb {
-fx-color: -fx-focused-base;
-fx-background-color:
-fx-focus-color,
derive(-fx-color,-36%),
derive(-fx-color,73%),
linear-gradient(to bottom, derive(-fx-color,-19%),derive(-fx-color,61%));
-fx-background-insets: -1.4, 0, 1, 2;
-fx-background-radius: 1.0em; /* makes sure this remains circular */
}
.slider .thumb:hover {
-fx-color: -fx-hover-base;
}
/* Uncomment when RT-10521 is fixed.
.slider .thumb:pressed {
-fx-color: -fx-pressed-base;
}
*/
.slider .track {
-fx-background-color:
-fx-shadow-highlight-color,
derive(-fx-color,-22%),
linear-gradient(to bottom, derive(-fx-color,-15.5%), derive(-fx-color,34%) 30%, derive(-fx-color,68%));
-fx-background-insets: 1 0 -1 0, 0, 1;
-fx-background-radius: 2.5, 2.5, 1.5;
-fx-padding: 0.208333em; /* 2.5 */
}
.slider:vertical .track {
-fx-background-color:
-fx-shadow-highlight-color,
derive(-fx-color,-22%),
linear-gradient(to right, derive(-fx-color,-15.5%), derive(-fx-color,34%) 30%, derive(-fx-color,68%));
-fx-background-insets: 0 -1 0 1, 0, 1;
}
.slider .axis {
-fx-tick-mark-stroke: ladder(-fx-background, derive(-fx-background,30%) 40%, derive(-fx-background,-30%) 41%);
-fx-tick-label-font: 0.833333em System;
-fx-tick-label-fill: -fx-text-background-color;
}
.slider:disabled {
-fx-opacity: -fx-disabled-opacity;
}

Changed: , Category: Panes, File: T6C230M1693.htm, ID: 1693