added a icon
This commit is contained in:
parent
3f18760a74
commit
ce11d2e263
|
@ -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
|
||||
|
@ -10,9 +11,9 @@ class Main: App(StartupView::class){
|
|||
//start first controller
|
||||
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")
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) }
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue