From 98ea02f12712f36cfdbf90105320ec28980f7e12 Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Sun, 25 May 2025 13:39:07 -0400 Subject: [PATCH] tweak button to copy passphrase --- desktop/src/main/java/haveno/desktop/haveno.css | 2 +- .../desktop/main/overlays/windows/OfferDetailsWindow.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/haveno.css b/desktop/src/main/java/haveno/desktop/haveno.css index ea73e47360..12cbab26ee 100644 --- a/desktop/src/main/java/haveno/desktop/haveno.css +++ b/desktop/src/main/java/haveno/desktop/haveno.css @@ -2626,7 +2626,7 @@ textfield */ } .passphrase-copy-box .jfx-button { - -fx-padding: 4 12 4 12; + -fx-padding: 5 15 5 15; -fx-background-radius: 999; -fx-border-radius: 999; -fx-min-height: 0; 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 766bf47128..3f76ffabf9 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 @@ -404,7 +404,7 @@ public class OfferDetailsWindow extends Overlay { GridPane.setHalignment(label, HPos.LEFT); GridPane.setValignment(label, VPos.TOP); - // add vbox with copy passphrase and copy button + // add vbox with passphrase and copy button VBox vbox = new VBox(13); vbox.setAlignment(Pos.TOP_CENTER); VBox.setVgrow(vbox, Priority.ALWAYS); @@ -420,7 +420,7 @@ public class OfferDetailsWindow extends Overlay { Label copyIcon = new Label(); copyIcon.getStyleClass().addAll("icon", "highlight"); copyIcon.setTooltip(new Tooltip(Res.get("shared.copyToClipboard"))); - AwesomeDude.setIcon(copyIcon, AwesomeIcon.COPY); + AwesomeDude.setIcon(copyIcon, AwesomeIcon.COPY, "1.1em"); JFXButton copyButton = new JFXButton(Res.get("offerDetailsWindow.challenge.copy"), copyIcon); copyButton.setContentDisplay(ContentDisplay.LEFT); copyButton.setGraphicTextGap(10);