fixed cvSearch style not applying

This commit is contained in:
2019-06-04 20:49:07 +02:00
parent 857f35e77e
commit c80233155f
5 changed files with 11 additions and 18 deletions

View File

@ -7,7 +7,7 @@ import org.hso.texturesyncclient.view.mainView.MainViewController
import org.hso.texturesyncclient.view.startupView.StartupView import org.hso.texturesyncclient.view.startupView.StartupView
import tornadofx.App import tornadofx.App
class Main: App(StartupView::class){ class Main: App(MainView::class){
val controller = RootController() val controller = RootController()

View File

@ -85,7 +85,6 @@ class RootController : Controller() {
fun initConnection(name: String) { fun initConnection(name: String) {
try { try {
con = Connection(InetAddress.getByName(name)) con = Connection(InetAddress.getByName(name))
println("ausgabe")
con.ping() con.ping()
println("Connection successful") println("Connection successful")

View File

@ -26,9 +26,9 @@ class DetailView: View() {
minWidth = 250.0 minWidth = 250.0
background = Background(BackgroundFill(Paint.valueOf("#9f9f9f"), CornerRadii.EMPTY, Insets.EMPTY)) background = Background(BackgroundFill(Paint.valueOf("#9f9f9f"), CornerRadii.EMPTY, Insets.EMPTY))
fieldset("DetailView", labelPosition = Orientation.VERTICAL) { fieldset(labelPosition = Orientation.VERTICAL) {
field("3D Preview") { field{
vbox(7) { vbox(7) {
add(preview) add(preview)
} }
@ -38,7 +38,7 @@ class DetailView: View() {
add(metaLabel) add(metaLabel)
} }
field("Tags") { field {
add(cvTags) add(cvTags)
} }

View File

@ -16,6 +16,7 @@ class FolderView : View("FolderView"){
prefWidth = 732.0 prefWidth = 732.0
prefHeight = 1000.0 prefHeight = 1000.0
background = Background(BackgroundFill(Paint.valueOf("#cfcfcf"), CornerRadii.EMPTY, Insets.EMPTY)) background = Background(BackgroundFill(Paint.valueOf("#cfcfcf"), CornerRadii.EMPTY, Insets.EMPTY))
//background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
style { style {

View File

@ -2,10 +2,8 @@ package org.hso.texturesyncclient.view.mainView
import com.jfoenix.controls.JFXChipView import com.jfoenix.controls.JFXChipView
import com.jfoenix.controls.JFXSpinner import com.jfoenix.controls.JFXSpinner
import com.jfoenix.controls.JFXTextField
import javafx.collections.ListChangeListener
import javafx.geometry.Insets import javafx.geometry.Insets
import javafx.scene.image.Image
import javafx.scene.layout.Background import javafx.scene.layout.Background
import javafx.scene.layout.BackgroundFill import javafx.scene.layout.BackgroundFill
import javafx.scene.layout.CornerRadii import javafx.scene.layout.CornerRadii
@ -26,7 +24,6 @@ class MainView : View() {
maxWidth = 1000.0 maxWidth = 1000.0
minHeight = 500.0 minHeight = 500.0
maxHeight = 500.0 maxHeight = 500.0
background = Background(BackgroundFill(Paint.valueOf("#2b2b2b"), CornerRadii.EMPTY, Insets.EMPTY))
left = vbox { left = vbox {
prefWidth = 750.0 prefWidth = 750.0
@ -42,20 +39,16 @@ class MainView : View() {
spinnerSearch.isVisible = false spinnerSearch.isVisible = false
cvSearch.paddingAll = 7.0 cvSearch.paddingAll = 7.0
cvSearch.style = "-fx-background-color: #3c3f41; -fx-text-inner-color: #b15b2e;" // TODO fix text color cvSearch.minHeight = 70.0
cvSearch.style { cvSearch.style = "-fx-background-color: #3c3f41; -fx-text-inner-color: #b15b2e;"
minHeight = Dimension(74.0, Dimension.LinearUnits.px)
}
} }
// actions // actions
cvSearch.chips.addListener { change: ListChangeListener.Change<out String>? -> cvSearch.chips.onChange {
mvc.cvSearchAction(cvSearch.chips) mvc.cvSearchAction(cvSearch.chips)
} }
detailView.cvTags.chips.addListener { change: ListChangeListener.Change<out String>? -> detailView.cvTags.chips.onChange {
mvc.updateTags() mvc.updateTags()
} }