From 9ae50df1a47117eb523f1d068f7bb2cca9dfa586 Mon Sep 17 00:00:00 2001 From: Seil0 Date: Sat, 8 Jun 2019 14:39:18 +0200 Subject: [PATCH] don't resize the window, set the correct Title * closes #19 --- .../main/kotlin/org/hso/texturesyncclient/app/Main.kt | 9 +++++++-- .../hso/texturesyncclient/view/importView/ImportView.kt | 2 +- .../org/hso/texturesyncclient/view/mainView/MainView.kt | 2 +- .../texturesyncclient/view/startupView/StartupView.kt | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt index 7c0d5ef..3aff1e1 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt @@ -12,10 +12,15 @@ class Main: App(StartupView::class){ private val svc = StartupViewController() override fun start(stage: Stage) { - super.start(stage) + + stage.minWidth = 1000.00 + stage.minHeight = 500.00 + stage.isResizable = false stage.icons.add(Image("icons/TextureSync_Icon_256x256.jpeg")) stage.setOnCloseRequest { System.exit(0) } - stage.scene.stylesheets.add("/css/Styles.css") + + super.start(stage) + stage.scene.stylesheets.add("/css/Styles.css") // this call must be after the super call } } \ No newline at end of file diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt index 9876da0..6cae806 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt @@ -12,7 +12,7 @@ import javafx.scene.paint.Paint import javafx.scene.layout.Priority import tornadofx.* -class ImportView : View() { +class ImportView : View("TextureSync") { val tfFilePath = JFXTextField() val tfName = JFXTextField() diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainView.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainView.kt index bb001ac..1b0ca00 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainView.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainView.kt @@ -10,7 +10,7 @@ import javafx.scene.layout.CornerRadii import javafx.scene.paint.Paint import tornadofx.* -class MainView : View() { +class MainView : View("TextureSync") { val cvSearch = JFXChipView() val folderView = find(FolderView::class) diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt index dc4b04f..a22614f 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt @@ -13,7 +13,7 @@ import javafx.scene.layout.CornerRadii import javafx.scene.paint.Paint import tornadofx.* -class StartupView : View("StartupView") { +class StartupView : View("TextureSync") { val labelStatus = Label("Verbindung zum Server einrichten") val spinnerStatus = JFXSpinner()