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