1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 22:25:26 +01:00

(gui) Fixed responsive behaviour of status bar

This commit is contained in:
dpad85 2017-02-15 19:54:05 +01:00
parent 1e58a69918
commit c355dd4578
2 changed files with 24 additions and 45 deletions

View file

@ -7,7 +7,7 @@
-fx-border-color: rgb(181,181,181);
}
.status-bar .separator:vertical {
-fx-padding: 0 1em;
-fx-padding: 0 5px;
}
.status-bar .separator:vertical .line {
@ -17,7 +17,7 @@
}
.status-bar .label {
-fx-padding: 2px 0px 2px .5em;
-fx-padding: 2px 0px 2px 5px;
-fx-font-size: 12px;
}

View file

@ -74,16 +74,9 @@
</TabPane>
</center>
<bottom>
<GridPane styleClass="status-bar" BorderPane.alignment="CENTER_LEFT">
<columnConstraints>
<ColumnConstraints fillWidth="false" hgrow="SOMETIMES" minWidth="10.0"/>
<ColumnConstraints hgrow="ALWAYS" minWidth="400.0"/>
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES"/>
</rowConstraints>
<HBox styleClass="status-bar">
<children>
<HBox alignment="CENTER_LEFT" onContextMenuRequested="#openNodeIdContext" onMouseClicked="#closeNodeIdContext">
<HBox alignment="CENTER_LEFT" HBox.hgrow="ALWAYS" onContextMenuRequested="#openNodeIdContext">
<children>
<ImageView fitHeight="16.0" fitWidth="27.0" opacity="0.52" pickOnBounds="true"
preserveRatio="true">
@ -94,44 +87,30 @@
<Label fx:id="labelNodeId" text="N/A"/>
</children>
</HBox>
<HBox alignment="CENTER_RIGHT" GridPane.columnIndex="1">
<HBox alignment="CENTER_LEFT" HBox.hgrow="NEVER" minWidth="90.0">
<children>
<HBox alignment="CENTER_RIGHT" minWidth="80.0">
<children>
<Separator orientation="VERTICAL"/>
<Label text="HTTP">
<styleClass>
<String fx:value="badge"/>
<String fx:value="badge-http"/>
</styleClass>
</Label>
<Label fx:id="labelApi" styleClass="value" text="00000" textAlignment="RIGHT"/>
</children>
</HBox>
<HBox alignment="CENTER_RIGHT" minWidth="80.0">
<children>
<Separator orientation="VERTICAL"/>
<Label text="TCP">
<styleClass>
<String fx:value="badge"/>
<String fx:value="badge-tcp"/>
</styleClass>
</Label>
<Label fx:id="labelServer" text="000000" textAlignment="RIGHT"/>
</children>
</HBox>
<HBox alignment="CENTER_RIGHT">
<children>
<Separator orientation="VERTICAL"/>
<Label text="Bitcoin-core" textAlignment="RIGHT"/>
<Label fx:id="bitcoinVersion" text="N/A"/>
<Label fx:id="bitcoinChain" styleClass="chain" text="(N/A)"/>
</children>
</HBox>
<Separator orientation="VERTICAL"/>
<Label text="HTTP" styleClass="badge, badge-http"/>
<Label fx:id="labelApi" styleClass="value" text="N/A" textAlignment="RIGHT"/>
</children>
</HBox>
<HBox alignment="CENTER_LEFT" HBox.hgrow="NEVER" minWidth="90.0">
<children>
<Separator orientation="VERTICAL"/>
<Label text="TCP" styleClass="badge, badge-tcp" />
<Label fx:id="labelServer" text="N/A" textAlignment="RIGHT"/>
</children>
</HBox>
<HBox alignment="CENTER_RIGHT" HBox.hgrow="SOMETIMES" minWidth="215.0">
<children>
<Separator orientation="VERTICAL"/>
<Label text="Bitcoin-core" textAlignment="RIGHT" textOverrun="CLIP"/>
<Label fx:id="bitcoinVersion" text="N/A" textOverrun="CLIP"/>
<Label fx:id="bitcoinChain" styleClass="chain" text="(N/A)" textOverrun="CLIP"/>
</children>
</HBox>
</children>
</GridPane>
</HBox>
</bottom>
<stylesheets>
<URL value="@main.css"/>