From 4025dfe9517fc094e523930151b76b39b57b4f77 Mon Sep 17 00:00:00 2001 From: SpoilerRules Date: Tue, 26 Mar 2024 20:24:42 +0100 Subject: [PATCH] added exit animation --- .../kotlin/com/spoiligaming/generator/gui/Initializer.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/spoiligaming/generator/gui/Initializer.kt b/src/main/kotlin/com/spoiligaming/generator/gui/Initializer.kt index 661f20c..e09f478 100644 --- a/src/main/kotlin/com/spoiligaming/generator/gui/Initializer.kt +++ b/src/main/kotlin/com/spoiligaming/generator/gui/Initializer.kt @@ -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 {