Skip to content

Commit

Permalink
Add fancy not so ugly progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Nojipiz committed Oct 18, 2022
1 parent 26acd79 commit 169efaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions montecarlo_archery/src/main/scala/view/StartView.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ object StartView extends JFXApp3 {
alignment = Pos.Center
val progressBar = new ProgressBar(){
visible = false
style = """
-fx-text-box-border: #2684FF;
-fx-control-inner-background: white;
"""
}
viewModel.isLoading.onChange { (_, _, isLoading: Boolean) =>
progressBar.setVisible(isLoading)
Expand Down

0 comments on commit 169efaf

Please sign in to comment.