clean up
This commit is contained in:
parent
d5b7fd0f94
commit
1c1f12ecaf
|
@ -27,7 +27,6 @@ import java.util.UUID
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
import java.io.FileOutputStream
|
import java.io.FileOutputStream
|
||||||
|
|
||||||
|
|
||||||
class RootController : Controller() {
|
class RootController : Controller() {
|
||||||
|
|
||||||
private val mvc: MainViewController by inject()
|
private val mvc: MainViewController by inject()
|
|
@ -25,9 +25,13 @@ class GUIModel constructor(var data: Texture, img: Image) : VBox(){
|
||||||
private val gmc = find(GUIModelController::class)
|
private val gmc = find(GUIModelController::class)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
//super.setPadding(Insets(10.0, 10.0, 10.0, 10.0))
|
||||||
super.getChildren().addAll(image, label)
|
super.getChildren().addAll(image, label)
|
||||||
super.setOnContextMenuRequested { p0 -> contextMenu.show(this@GUIModel, p0.screenX, p0.screenY) }
|
super.setOnContextMenuRequested { p0 -> contextMenu.show(this@GUIModel, p0.screenX, p0.screenY) }
|
||||||
super.setOnMouseClicked{ gmc.previewSelectedAction(data) }
|
super.setOnMouseClicked{
|
||||||
|
//this.background = Background(BackgroundFill(Paint.valueOf("#42adaf"), CornerRadii.EMPTY, Insets.EMPTY))
|
||||||
|
gmc.previewSelectedAction(data)
|
||||||
|
}
|
||||||
|
|
||||||
label.paddingTop = 5.0
|
label.paddingTop = 5.0
|
||||||
label.prefWidth = 128.0
|
label.prefWidth = 128.0
|
||||||
|
|
|
@ -56,7 +56,6 @@ class MainViewController : Controller() {
|
||||||
mv.cvSearch.isDisable = true
|
mv.cvSearch.isDisable = true
|
||||||
|
|
||||||
runAsync {
|
runAsync {
|
||||||
//previewList = rootc.search(tags)
|
|
||||||
rootc.queryElements(tags)
|
rootc.queryElements(tags)
|
||||||
} ui {
|
} ui {
|
||||||
// when search finished
|
// when search finished
|
||||||
|
|
Loading…
Reference in New Issue