Permalink
Browse files

Color circle initial visibility now depends on "on" property

  • Loading branch information...
1 parent 9b9d2de commit 26cc2b0f89757e5f12c60182704c7de6c124a7e6 @HanSolo committed Dec 18, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/java/eu/hansolo/fx/regulators/ColorRegulator.java
@@ -287,6 +287,7 @@ private void initGraphics() {
currentColorCircle = new Circle();
currentColorCircle.setFill(targetColor.get());
+ currentColorCircle.setVisible(isOn());
pane = new Pane(barArc, ring, mainCircle, currentColorCircle, innerRing, indicatorGroup, buttonOn, textOn, buttonOff, textOff);
pane.setPrefSize(PREFERRED_HEIGHT, PREFERRED_HEIGHT);

0 comments on commit 26cc2b0

Please sign in to comment.