From ae375209824f744146fdec62f4a32615fbf8007b Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Mon, 26 May 2025 06:09:46 -0400 Subject: [PATCH] update copy icon for passphrase --- .../overlays/windows/OfferDetailsWindow.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java index 3f76ffabf9..ee7c0061e3 100644 --- a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java +++ b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java @@ -24,8 +24,8 @@ import com.jfoenix.controls.JFXButton; import com.jfoenix.controls.JFXTextField; -import de.jensd.fx.fontawesome.AwesomeDude; -import de.jensd.fx.fontawesome.AwesomeIcon; +import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon; +import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIconView; import haveno.common.UserThread; import haveno.common.crypto.KeyRing; import haveno.common.util.Tuple2; @@ -80,6 +80,7 @@ import javafx.scene.layout.GridPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Priority; import javafx.scene.layout.VBox; +import javafx.scene.paint.Color; import org.fxmisc.easybind.EasyBind; import org.fxmisc.easybind.Subscription; @@ -417,13 +418,15 @@ public class OfferDetailsWindow extends Overlay { centerLabel.setFocusTraversable(false); // add copy button - Label copyIcon = new Label(); - copyIcon.getStyleClass().addAll("icon", "highlight"); - copyIcon.setTooltip(new Tooltip(Res.get("shared.copyToClipboard"))); - AwesomeDude.setIcon(copyIcon, AwesomeIcon.COPY, "1.1em"); - JFXButton copyButton = new JFXButton(Res.get("offerDetailsWindow.challenge.copy"), copyIcon); + Label copyLabel = new Label(); + copyLabel.getStyleClass().addAll("icon", "highlight"); + copyLabel.setTooltip(new Tooltip(Res.get("shared.copyToClipboard"))); + MaterialDesignIconView copyIcon = new MaterialDesignIconView(MaterialDesignIcon.CONTENT_COPY, "1.2em"); + copyIcon.setFill(Color.WHITE); + copyLabel.setGraphic(copyIcon); + JFXButton copyButton = new JFXButton(Res.get("offerDetailsWindow.challenge.copy"), copyLabel); copyButton.setContentDisplay(ContentDisplay.LEFT); - copyButton.setGraphicTextGap(10); + copyButton.setGraphicTextGap(8); copyButton.setOnAction(e -> Utilities.copyToClipboard(offerChallenge)); copyButton.setId("buy-button"); vbox.getChildren().addAll(centerLabel, copyButton);