Evenly space footer status items (#3485)

This commit is contained in:
user411 2021-08-05 05:51:11 -06:00 committed by GitHub
parent 3177b1586b
commit 831e0fd96d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,17 +17,14 @@ abstract class WalletGUI extends Logging {
private lazy val statusLabel = new Label { private lazy val statusLabel = new Label {
maxWidth = Double.MaxValue maxWidth = Double.MaxValue
padding = Insets(0, 10, 10, 10)
text <== GlobalData.statusText text <== GlobalData.statusText
} }
private lazy val infoLabel = new Label { private lazy val infoLabel = new Label {
padding = Insets(top = 0, right = 0, bottom = 10, left = 0)
text <== StringProperty("Sync Height: ") + GlobalData.syncHeight text <== StringProperty("Sync Height: ") + GlobalData.syncHeight
} }
private lazy val connectedLabel = new Label { private lazy val connectedLabel = new Label {
padding = Insets(top = 0, right = 0, bottom = 10, left = 1200)
text <== GlobalData.connectedStr text <== GlobalData.connectedStr
} }
@ -140,8 +137,14 @@ abstract class WalletGUI extends Logging {
stateDetails) stateDetails)
} }
lazy val bottomStack: StackPane = new StackPane() { lazy val bottomStack: HBox = new HBox {
children = Vector(statusLabel, infoLabel, connectedLabel) padding = Insets(5, 10, 5, 10)
hgrow = Priority.Always
children = Vector(statusLabel,
GUIUtil.getHSpacer(),
infoLabel,
GUIUtil.getHSpacer(),
connectedLabel)
} }
lazy val borderPane: BorderPane = new BorderPane { lazy val borderPane: BorderPane = new BorderPane {