diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt index 8094315..3e3faf3 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt @@ -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){ diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt index 9ecbe4b..7758861 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportView.kt @@ -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 { diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportViewController.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportViewController.kt index aa09ec0..9af8792 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportViewController.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/importView/ImportViewController.kt @@ -6,5 +6,9 @@ class ImportViewController : Controller() { fun btnFileChooserAction() { println("btn click") + + + + } } \ No newline at end of file