Adapt offer book styling to match design guide more closely

This commit is contained in:
Christoph Atteneder 2018-07-24 16:04:46 +02:00
parent 3bf96e58b9
commit a0f6bec4f9
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 10 additions and 6 deletions

View File

@ -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 */

View File

@ -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, "", ""));