first color style test
This commit is contained in:
parent
6dd72e3e69
commit
232fd6c1de
|
@ -4,7 +4,7 @@ import org.hso.texturesyncclient.view.importView.ImportView
|
|||
import org.hso.texturesyncclient.view.startupView.StartupView
|
||||
import tornadofx.App
|
||||
|
||||
class Main: App(StartupView::class){
|
||||
class Main: App(ImportView::class){
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,11 @@ import com.jfoenix.controls.JFXButton
|
|||
import com.jfoenix.controls.JFXChipView
|
||||
import com.jfoenix.controls.JFXTextField
|
||||
import javafx.geometry.Pos
|
||||
import javafx.scene.layout.Background
|
||||
import javafx.geometry.Insets
|
||||
import javafx.scene.layout.BackgroundFill
|
||||
import javafx.scene.layout.CornerRadii
|
||||
import javafx.scene.paint.Paint
|
||||
import javafx.scene.control.Label
|
||||
import javafx.scene.layout.Priority
|
||||
import javafx.scene.text.Font
|
||||
|
@ -22,10 +27,10 @@ class ImportView : View() {
|
|||
|
||||
private val ivc: ImportViewController by inject()
|
||||
|
||||
|
||||
override val root = borderpane {
|
||||
minWidth = 1000.0
|
||||
minHeight = 500.0
|
||||
background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
|
||||
|
||||
center = vbox(50) {
|
||||
maxWidth = 350.0
|
||||
|
@ -49,22 +54,28 @@ class ImportView : View() {
|
|||
add(cvTags)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
style {
|
||||
labelHeading.font = Font.font("Verdana", FontWeight.MEDIUM, 40.0)
|
||||
labelHeading.textFill = Paint.valueOf("#2b7bbb")
|
||||
|
||||
tfFilePath.promptText = "Pfad ..."
|
||||
tfFilePath.promptText = "Pfad zur Datei"
|
||||
tfFilePath.hgrow = Priority.ALWAYS
|
||||
btnFileChooser.style = "-fx-button-type: RAISED; -fx-background-color: #FAAFFF; -fx-text-fill: BLACK;"
|
||||
tfFilePath.style = "-fx-text-fill: #b15b2e;"
|
||||
|
||||
labelName.style = "-fx-font: 14px Verdana; -fx-text-fill: BLACK;"
|
||||
tfName.promptText = "Name ..."
|
||||
btnFileChooser.style = "-fx-button-type: RAISED; -fx-background-color: #3c3f41; -fx-text-fill: #2b7bbb;"
|
||||
|
||||
labelName.style = "-fx-font: 14px Verdana; -fx-text-fill: #2b7bbb;"
|
||||
|
||||
tfName.promptText = "Name eingeben"
|
||||
tfName.style = "-fx-text-fill: #b15b2e;"
|
||||
|
||||
labelTags.style = "-fx-font: 14px Verdana; -fx-text-fill: #2b7bbb;"
|
||||
|
||||
cvTags.style = "-fx-background-color: #3c3f41; -fx-text-inner-color: #b15b2e;"
|
||||
//TODO change color of Chip´s
|
||||
|
||||
labelTags.style = "-fx-font: 14px Verdana; -fx-text-fill: BLACK;"
|
||||
cvTags.style = "-fx-background-color: #FFFFFF;"
|
||||
}
|
||||
|
||||
btnFileChooser.setOnAction {
|
||||
|
|
|
@ -6,5 +6,9 @@ class ImportViewController : Controller() {
|
|||
|
||||
fun btnFileChooserAction() {
|
||||
println("btn click")
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue