Skip to content

Commit

Permalink
Merge pull request #3808 from ripcurlx/fix-remaining-dark-mode-bugs
Browse files Browse the repository at this point in the history
Fixes remaining dark mode bugs (except chat bubbles)
  • Loading branch information
sqrrm committed Dec 19, 2019
2 parents 0efbe06 + 35ef9b6 commit ab35dbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions desktop/src/main/java/bisq/desktop/bisq.css
Expand Up @@ -838,6 +838,7 @@ textfield */
-fx-border-width: 0px;
-fx-underline: true;
-fx-text-fill: -bs-rd-font-dark;
-fx-fill: -bs-rd-font-dark;
}

.hyperlink.no-underline {
Expand All @@ -846,6 +847,7 @@ textfield */

.hyperlink:hover {
-fx-text-fill: -bs-text-color;
-fx-fill: -bs-text-color;
}

.hyperlink:hover,
Expand Down
Expand Up @@ -81,9 +81,6 @@ private void setIcon(Node icon) {

setContentDisplay(ContentDisplay.RIGHT);
setGraphicTextGap(7.0);

//TODO: replace workaround of setting the style this way
tooltipProperty().addListener((observable, oldValue, newValue) -> newValue.getStyleClass().add("tooltip-hyperlink-icon"));
}

public void clear() {
Expand Down
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 ab35dbc

Please sign in to comment.