Skip to content

Commit

Permalink
added exit animation
Browse files Browse the repository at this point in the history
  • Loading branch information
SpoilerRules committed Mar 26, 2024
1 parent 8983a47 commit 4025dfe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@ class Initializer : Application() {
style = buttonStyle(ColorPalette.textColor)

setOnAction {
exitProcess(0)
style = buttonStyle(ColorPalette.accentColor)
text = "Exiting..."
Thread {
Thread.sleep(50) // allow text and style to update
exitProcess(0)
}.start()
}

setOnMouseEntered {
Expand Down

0 comments on commit 4025dfe

Please sign in to comment.