TextureSync/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt

26 lines
761 B
Kotlin
Raw Normal View History

package org.hso.texturesyncclient.app
2019-06-08 14:27:11 +02:00
import javafx.scene.image.Image
import javafx.stage.Stage
import org.hso.texturesyncclient.view.startupView.StartupView
2019-06-05 16:05:10 +02:00
import org.hso.texturesyncclient.view.startupView.StartupViewController
import tornadofx.App
2019-06-05 16:05:10 +02:00
class Main: App(StartupView::class){
2019-06-04 16:05:47 +02:00
2019-06-07 09:52:09 +02:00
//start first controller
2019-06-08 14:27:11 +02:00
private val svc = StartupViewController()
override fun start(stage: Stage) {
stage.minWidth = 1000.00
stage.minHeight = 500.00
stage.isResizable = false
2019-06-08 14:27:11 +02:00
stage.icons.add(Image("icons/TextureSync_Icon_256x256.jpeg"))
stage.setOnCloseRequest { System.exit(0) }
super.start(stage)
stage.scene.stylesheets.add("/css/Styles.css") // this call must be after the super call
}
}