Hide percentage value in busy animation

This commit is contained in:
Christoph Atteneder 2018-11-21 11:31:19 +01:00
parent 7f0439a028
commit c969228578
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B
2 changed files with 6 additions and 0 deletions

View file

@ -278,6 +278,10 @@ bg color of non edit textFields: fafafa
-fx-stroke: -bs-rd-green;
}
.busyanimation .text.percentage {
-fx-fill: null;
}
.jfx-button, .action-button {
-fx-background-color: -bs-rd-grey-light;
-fx-text-fill: -bs-rd-font-dark-grey;

View file

@ -31,6 +31,7 @@ public class BusyAnimation extends JFXSpinner {
}
public BusyAnimation(boolean isRunning) {
getStyleClass().add("busyanimation");
isRunningProperty.set(isRunning);
updateVisibility();
@ -38,6 +39,7 @@ public class BusyAnimation extends JFXSpinner {
public void play() {
isRunningProperty.set(true);
setProgress(-1);
updateVisibility();
}