added a icon

This commit is contained in:
Jannik 2019-06-08 14:27:11 +02:00
parent 3f18760a74
commit ce11d2e263
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
3 changed files with 5 additions and 5 deletions

View File

@ -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")
}

View File

@ -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 {

View File

@ -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) }
}
}