mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Add workaround again for button labels
This commit is contained in:
parent
8b8022aa7e
commit
2e88b5ee19
@ -860,12 +860,13 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
|
||||
iconView.setId("image-remove");
|
||||
title = Res.get("shared.remove");
|
||||
button.setId("cancel-button");
|
||||
button.setStyle("-fx-text-fill: #444;"); // does not take the font colors sometimes from the style
|
||||
button.setOnAction(e -> onRemoveOpenOffer(offer));
|
||||
} else {
|
||||
boolean isSellOffer = offer.getDirection() == OfferPayload.Direction.SELL;
|
||||
iconView.setId(isSellOffer ? "image-buy-white" : "image-sell-white");
|
||||
|
||||
button.setId(isSellOffer ? "buy-button" : "sell-button");
|
||||
button.setStyle("-fx-text-fill: white;"); // does not take the font colors sometimes from the style
|
||||
title = Res.get("offerbook.takeOffer");
|
||||
button.setTooltip(new Tooltip(Res.get("offerbook.takeOfferButton.tooltip", model.getDirectionLabelTooltip(offer))));
|
||||
button.setOnAction(e -> onTakeOffer(offer));
|
||||
|
Loading…
Reference in New Issue
Block a user