Adjust auto-conf css for badge

- make it xmr orange
- make with dynamic with 10 px padding left/right
- fix 1 px vertical offset
This commit is contained in:
chimp1984 2020-09-03 21:02:16 -05:00 committed by Christoph Atteneder
parent fa9893cdd4
commit 044d23f933
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B
2 changed files with 5 additions and 3 deletions

View file

@ -436,8 +436,10 @@ tree-table-view:focused {
-fx-pref-width: 30; -fx-pref-width: 30;
} }
.jfx-badge.autoconf .badge-pane { .jfx-badge.auto-conf .badge-pane {
-fx-pref-width: 100; -fx-background-color: -xmr-orange;
-fx-pref-width: -1;
-fx-padding: -1 10 0 10;
} }
.jfx-badge .badge-pane .label { .jfx-badge .badge-pane .label {

View file

@ -112,7 +112,7 @@ public class BuyerStep4View extends TradeStepView {
JFXBadge autoConfBadge = new JFXBadge(new Label(""), Pos.BASELINE_RIGHT); JFXBadge autoConfBadge = new JFXBadge(new Label(""), Pos.BASELINE_RIGHT);
autoConfBadge.setText(Res.get("portfolio.pending.autoConf")); autoConfBadge.setText(Res.get("portfolio.pending.autoConf"));
autoConfBadge.getStyleClass().add("autoconf"); autoConfBadge.getStyleClass().add("auto-conf");
HBox hBox2 = new HBox(1, completedTradeLabel, autoConfBadge); HBox hBox2 = new HBox(1, completedTradeLabel, autoConfBadge);
GridPane.setMargin(hBox2, new Insets(18, -10, -12, -10)); GridPane.setMargin(hBox2, new Insets(18, -10, -12, -10));