mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-22 13:39:39 -04:00
fix trade warning icons and revert trade icon
This commit is contained in:
parent
f0162c05bc
commit
c496ff84b4
3 changed files with 3 additions and 2 deletions
|
@ -183,7 +183,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-cell .jfx-button {
|
.table-cell .jfx-button {
|
||||||
-fx-padding: 0 10 0 10;
|
-fx-padding: 0 7 0 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tiny-button,
|
.tiny-button,
|
||||||
|
|
|
@ -698,7 +698,7 @@ public class ClosedTradesView extends ActivatableViewAndModel<VBox, ClosedTrades
|
||||||
if (!empty && newItem != null && !trade.isPayoutConfirmed()) {
|
if (!empty && newItem != null && !trade.isPayoutConfirmed()) {
|
||||||
Label icon = FormBuilder.getIcon(AwesomeIcon.UNDO);
|
Label icon = FormBuilder.getIcon(AwesomeIcon.UNDO);
|
||||||
JFXButton iconButton = new JFXButton("", icon);
|
JFXButton iconButton = new JFXButton("", icon);
|
||||||
iconButton.setStyle("-fx-cursor: hand;");
|
iconButton.setStyle("-fx-cursor: hand; -fx-padding: 0 10 0 10;");
|
||||||
iconButton.getStyleClass().add("hidden-icon-button");
|
iconButton.getStyleClass().add("hidden-icon-button");
|
||||||
iconButton.setTooltip(new Tooltip(Res.get("portfolio.failed.revertToPending")));
|
iconButton.setTooltip(new Tooltip(Res.get("portfolio.failed.revertToPending")));
|
||||||
iconButton.setOnAction(e -> onRevertTrade(trade));
|
iconButton.setOnAction(e -> onRevertTrade(trade));
|
||||||
|
|
|
@ -978,6 +978,7 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
|
||||||
|
|
||||||
HBox hBox = new HBox();
|
HBox hBox = new HBox();
|
||||||
hBox.setSpacing(0);
|
hBox.setSpacing(0);
|
||||||
|
//hBox.setAlignment(Pos.CENTER); // so spacing is consistent with column to the left
|
||||||
hBox.getChildren().addAll(warnIconButton, trashIconButton);
|
hBox.getChildren().addAll(warnIconButton, trashIconButton);
|
||||||
setGraphic(hBox);
|
setGraphic(hBox);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue