Skip to content

Commit

Permalink
Not use style workaround
Browse files Browse the repository at this point in the history
After some testing on Regtest it seems that this workaround is no longer needed.
This fixes the issue for the remove button mentioned in bisq-network#3185.
  • Loading branch information
ripcurlx committed Dec 19, 2019
1 parent 0efbe06 commit 26044d8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@

import org.bitcoinj.core.Coin;

import javax.inject.Named;
import javax.inject.Inject;
import javax.inject.Named;

import de.jensd.fx.glyphs.GlyphIcons;
import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon;
Expand Down Expand Up @@ -1002,13 +1002,11 @@ public void updateItem(final OfferBookListItem newItem, boolean empty) {
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
if (isSellOffer) {
title = CurrencyUtil.isFiatCurrency(offer.getCurrencyCode()) ?
Res.get("offerbook.takeOfferToBuy", offer.getOfferPayload().getBaseCurrencyCode()) :
Expand Down

0 comments on commit 26044d8

Please sign in to comment.