Skip to content

Commit 06ff35d

Browse files
authored
move some slider styling into fxml file to fix sample viewer display (#540)
1 parent a51e9f5 commit 06ff35d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scene/surface-placement/src/main/resources/surface_placement/main.fxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<Insets topRightBottomLeft="10"/>
4848
</StackPane.margin>
4949
<Label fx:id="zValueSliderLabel" text="Z-Value: "/>
50-
<Slider fx:id="zValueSlider" min="0" max="150" value="70" onMouseDragged="#changeZValue"
51-
onMouseReleased="#changeZValue"/>
50+
<Slider fx:id="zValueSlider" showTickLabels="true" showTickMarks="true" majorTickUnit="50" minorTickCount="1"
51+
min="0" max="150" value="70" onMouseDragged="#changeZValue" onMouseReleased="#changeZValue"/>
5252
</VBox>
5353
</StackPane>

scene/surface-placement/src/main/resources/surface_placement/style.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
.slider-controls .slider {
2828
-fx-orientation: vertical;
2929
-fx-pref-height:160;
30-
-fx-show-tick-marks: true;
31-
-fx-show-tick-labels: true;
32-
-fx-major-tick-unit: 50;
33-
-fx-minor-tick-count: 1;
3430
}
3531

3632
.slider-controls .slider .axis {

0 commit comments

Comments
 (0)