add ChipView and meta Label to DetailView

This commit is contained in:
Jannik 2019-05-09 13:55:22 +02:00
parent 805cfed250
commit c0438a6e34
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
2 changed files with 14 additions and 4 deletions

View File

@ -5,6 +5,6 @@ import org.hso.texturesyncclient.view.mainView.MainView
import org.hso.texturesyncclient.view.startupView.StartupView
import tornadofx.App
class Main: App(ImportView::class){
class Main: App(MainView::class){
}

View File

@ -1,7 +1,9 @@
package org.hso.texturesyncclient.view.mainView
import com.jfoenix.controls.JFXChipView
import javafx.geometry.Insets
import javafx.geometry.Orientation
import javafx.scene.control.Label
import javafx.scene.image.Image
import javafx.scene.layout.Background
import javafx.scene.layout.BackgroundFill
@ -12,6 +14,8 @@ import tornadofx.*
class DetailView: View() {
val preview = Preview3D()
val metaLabel = Label("Auflösung: 8MP\n Name: Texture.png\n Andere: was anderes")
val cvTags = JFXChipView<String>()
init {
// set a default texture
@ -30,13 +34,19 @@ class DetailView: View() {
}
}
field("Text input") {
field("Meta") {
add(metaLabel)
}
field("Tags") {
add(cvTags)
}
// TODO add "Import" Btn
}
style {
cvTags.style = "-fx-background-color: #3c3f41; -fx-text-inner-color: #b15b2e;"
}
}