don't resize the window, set the correct Title

* closes #19
This commit is contained in:
Jannik 2019-06-08 14:39:18 +02:00
parent ce11d2e263
commit 9ae50df1a4
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
4 changed files with 10 additions and 5 deletions

View File

@ -12,10 +12,15 @@ class Main: App(StartupView::class){
private val svc = StartupViewController() private val svc = StartupViewController()
override fun start(stage: Stage) { 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.icons.add(Image("icons/TextureSync_Icon_256x256.jpeg"))
stage.setOnCloseRequest { System.exit(0) } 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
} }
} }

View File

@ -12,7 +12,7 @@ import javafx.scene.paint.Paint
import javafx.scene.layout.Priority import javafx.scene.layout.Priority
import tornadofx.* import tornadofx.*
class ImportView : View() { class ImportView : View("TextureSync") {
val tfFilePath = JFXTextField() val tfFilePath = JFXTextField()
val tfName = JFXTextField() val tfName = JFXTextField()

View File

@ -10,7 +10,7 @@ import javafx.scene.layout.CornerRadii
import javafx.scene.paint.Paint import javafx.scene.paint.Paint
import tornadofx.* import tornadofx.*
class MainView : View() { class MainView : View("TextureSync") {
val cvSearch = JFXChipView<String>() val cvSearch = JFXChipView<String>()
val folderView = find(FolderView::class) val folderView = find(FolderView::class)

View File

@ -13,7 +13,7 @@ import javafx.scene.layout.CornerRadii
import javafx.scene.paint.Paint import javafx.scene.paint.Paint
import tornadofx.* import tornadofx.*
class StartupView : View("StartupView") { class StartupView : View("TextureSync") {
val labelStatus = Label("Verbindung zum Server einrichten") val labelStatus = Label("Verbindung zum Server einrichten")
val spinnerStatus = JFXSpinner() val spinnerStatus = JFXSpinner()