added a icon
This commit is contained in:
parent
3f18760a74
commit
ce11d2e263
|
@ -1,5 +1,6 @@
|
||||||
package org.hso.texturesyncclient.app
|
package org.hso.texturesyncclient.app
|
||||||
|
|
||||||
|
import javafx.scene.image.Image
|
||||||
import javafx.stage.Stage
|
import javafx.stage.Stage
|
||||||
import org.hso.texturesyncclient.view.startupView.StartupView
|
import org.hso.texturesyncclient.view.startupView.StartupView
|
||||||
import org.hso.texturesyncclient.view.startupView.StartupViewController
|
import org.hso.texturesyncclient.view.startupView.StartupViewController
|
||||||
|
@ -8,11 +9,11 @@ import tornadofx.App
|
||||||
class Main: App(StartupView::class){
|
class Main: App(StartupView::class){
|
||||||
|
|
||||||
//start first controller
|
//start first controller
|
||||||
private val svc = StartupViewController()
|
private val svc = StartupViewController()
|
||||||
|
|
||||||
|
|
||||||
override fun start(stage: Stage) {
|
override fun start(stage: Stage) {
|
||||||
super.start(stage)
|
super.start(stage)
|
||||||
|
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")
|
stage.scene.stylesheets.add("/css/Styles.css")
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,7 @@ class DetailView: View() {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
// set a default texture
|
// set a default texture
|
||||||
preview.setTexture(Image("textures/sample_texture_1.jpg"))
|
preview.setTexture(Image("icons/TextureSync_Icon_256x256.jpeg"))
|
||||||
//preview.setTexture(Image("icons/TextureSync_Icon_256x256.jpg"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override val root = form {
|
override val root = form {
|
||||||
|
|
|
@ -60,6 +60,7 @@ class MainViewController : Controller() {
|
||||||
// show spinner, block ui
|
// show spinner, block ui
|
||||||
folderView.children.clear()
|
folderView.children.clear()
|
||||||
mv.cvSearch.isDisable = true
|
mv.cvSearch.isDisable = true
|
||||||
|
setPreview3DTexture(Image("icons/TextureSync_Icon_256x256.jpeg")) // reset the 3DPreview to the logo
|
||||||
|
|
||||||
runAsync {
|
runAsync {
|
||||||
rootc.queryElements(tags)
|
rootc.queryElements(tags)
|
||||||
|
@ -80,5 +81,4 @@ class MainViewController : Controller() {
|
||||||
.ifPresent { x -> folderView.children.remove(x) }
|
.ifPresent { x -> folderView.children.remove(x) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue