add ChipView and meta Label to DetailView
This commit is contained in:
		@ -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){
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
@ -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;"
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user