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 2c04ce5..7c0d5ef 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt @@ -1,5 +1,6 @@ package org.hso.texturesyncclient.app +import javafx.scene.image.Image import javafx.stage.Stage import org.hso.texturesyncclient.view.startupView.StartupView import org.hso.texturesyncclient.view.startupView.StartupViewController @@ -8,11 +9,11 @@ import tornadofx.App class Main: App(StartupView::class){ //start first controller - private val svc = StartupViewController() - + private val svc = StartupViewController() override fun start(stage: Stage) { super.start(stage) + stage.icons.add(Image("icons/TextureSync_Icon_256x256.jpeg")) stage.setOnCloseRequest { System.exit(0) } stage.scene.stylesheets.add("/css/Styles.css") } diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/DetailView.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/DetailView.kt index 6a68f04..ecb58ad 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/DetailView.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/DetailView.kt @@ -22,8 +22,7 @@ class DetailView: View() { init { // set a default texture - preview.setTexture(Image("textures/sample_texture_1.jpg")) - //preview.setTexture(Image("icons/TextureSync_Icon_256x256.jpg")) + preview.setTexture(Image("icons/TextureSync_Icon_256x256.jpeg")) } override val root = form { diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt index 24492df..0328166 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/mainView/MainViewController.kt @@ -60,6 +60,7 @@ class MainViewController : Controller() { // show spinner, block ui folderView.children.clear() mv.cvSearch.isDisable = true + setPreview3DTexture(Image("icons/TextureSync_Icon_256x256.jpeg")) // reset the 3DPreview to the logo runAsync { rootc.queryElements(tags) @@ -80,5 +81,4 @@ class MainViewController : Controller() { .ifPresent { x -> folderView.children.remove(x) } } - } \ No newline at end of file