using same style methods like in ImportView
This commit is contained in:
		@ -11,8 +11,9 @@ import javafx.scene.input.KeyCode
 | 
			
		||||
import javafx.scene.layout.Background
 | 
			
		||||
import javafx.scene.layout.BackgroundFill
 | 
			
		||||
import javafx.scene.layout.CornerRadii
 | 
			
		||||
import javafx.scene.paint.Color
 | 
			
		||||
import javafx.scene.paint.Paint
 | 
			
		||||
import javafx.scene.text.Font
 | 
			
		||||
import javafx.scene.text.FontWeight
 | 
			
		||||
import tornadofx.*
 | 
			
		||||
 | 
			
		||||
class StartupView : View() {
 | 
			
		||||
@ -50,27 +51,20 @@ class StartupView : View() {
 | 
			
		||||
        style {
 | 
			
		||||
            spinnerStatus.isVisible = false
 | 
			
		||||
 | 
			
		||||
            labelStatus.style {
 | 
			
		||||
                textFill = Paint.valueOf("#2b7bbb")
 | 
			
		||||
                fontSize = 20.px
 | 
			
		||||
            }
 | 
			
		||||
            labelStatus.font = Font.font("Verdana", FontWeight.MEDIUM, 20.0)
 | 
			
		||||
            labelStatus.textFill = Paint.valueOf("#2b7bbb")
 | 
			
		||||
 | 
			
		||||
            labelServerIP.textFill = Paint.valueOf("#2b7bbb")
 | 
			
		||||
            labelServerIP.style { fontSize = 15.px }
 | 
			
		||||
            labelServerIP.font = Font.font("Verdana", FontWeight.MEDIUM, 15.0)
 | 
			
		||||
            btnConnect.textFill = Paint.valueOf("#2b7bbb")
 | 
			
		||||
            btnConnect.background =
 | 
			
		||||
                Background(BackgroundFill(Paint.valueOf("#3c3f41"), CornerRadii.EMPTY, Insets.EMPTY))
 | 
			
		||||
 | 
			
		||||
            btnConnect.style {
 | 
			
		||||
                padding = box(20.px, 10.px)
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            tfServerIP.style {
 | 
			
		||||
            tfServerIP.style { //TODO without .style
 | 
			
		||||
                textFill = Paint.valueOf("#b15b2e")
 | 
			
		||||
                alignment = Pos.BASELINE_CENTER
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        btnConnect.setOnAction {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user