mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Adapt offer book styling to match design guide more closely
This commit is contained in:
parent
3bf96e58b9
commit
a0f6bec4f9
@ -208,6 +208,7 @@ bg color of non edit textFields: fafafa
|
||||
|
||||
.jfx-button {
|
||||
-fx-background-color: -bs-new-grey;
|
||||
-fx-background-radius: 0px;
|
||||
}
|
||||
|
||||
.jfx-checkbox {
|
||||
@ -752,9 +753,9 @@ textfield */
|
||||
/* OfferBook */
|
||||
|
||||
.table-title {
|
||||
-fx-font-weight: bold;
|
||||
-fx-font-size: 1.231em;
|
||||
-fx-alignment: center;
|
||||
-fx-font-size: 1.154em;
|
||||
-fx-font-weight: normal;
|
||||
-fx-alignment: left;
|
||||
}
|
||||
|
||||
/* Offer */
|
||||
|
@ -66,6 +66,7 @@ import javafx.scene.layout.VBox;
|
||||
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.geometry.Side;
|
||||
|
||||
import org.fxmisc.easybind.EasyBind;
|
||||
import org.fxmisc.easybind.Subscription;
|
||||
@ -149,9 +150,10 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
|
||||
Res.get("shared.multipleOffers"),
|
||||
model.preferences));
|
||||
|
||||
Label currencyLabel = new AutoTooltipLabel(Res.getWithCol("shared.currency"));
|
||||
HBox currencyHBox = new HBox();
|
||||
currencyHBox.setSpacing(5);
|
||||
Label currencyLabel = new AutoTooltipLabel(Res.get("shared.currency"));
|
||||
currencyLabel.getStyleClass().add("small-text");
|
||||
VBox currencyHBox = new VBox();
|
||||
currencyHBox.setSpacing(0);
|
||||
currencyHBox.setPadding(new Insets(5, -20, -5, 20));
|
||||
currencyHBox.setAlignment(Pos.CENTER_LEFT);
|
||||
currencyHBox.getChildren().addAll(currencyLabel, currencyComboBox);
|
||||
@ -309,6 +311,7 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
|
||||
|
||||
NumberAxis yAxis = new NumberAxis();
|
||||
yAxis.setForceZeroInRange(false);
|
||||
yAxis.setSide(Side.RIGHT);
|
||||
yAxis.setAutoRanging(true);
|
||||
yAxis.setLabel(Res.get("shared.amountWithCur", Res.getBaseCurrencyCode()));
|
||||
yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis, "", ""));
|
||||
|
Loading…
Reference in New Issue
Block a user