mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 10:46:42 +01:00
Evenly space footer status items (#3485)
This commit is contained in:
parent
3177b1586b
commit
831e0fd96d
1 changed files with 8 additions and 5 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue