diff --git a/desktop/src/main/java/haveno/desktop/components/TextFieldWithCopyIcon.java b/desktop/src/main/java/haveno/desktop/components/TextFieldWithCopyIcon.java index f3b98afd0a..bd8fcf1b7d 100644 --- a/desktop/src/main/java/haveno/desktop/components/TextFieldWithCopyIcon.java +++ b/desktop/src/main/java/haveno/desktop/components/TextFieldWithCopyIcon.java @@ -49,6 +49,7 @@ public class TextFieldWithCopyIcon extends AnchorPane { Label copyIcon = new Label(); copyIcon.setLayoutY(Layout.FLOATING_ICON_Y); copyIcon.getStyleClass().addAll("icon", "highlight"); + if (customStyleClass != null) copyIcon.getStyleClass().add(customStyleClass + "-icon"); copyIcon.setTooltip(new Tooltip(Res.get("shared.copyToClipboard"))); AwesomeDude.setIcon(copyIcon, AwesomeIcon.COPY); copyIcon.setOnMouseClicked(e -> { diff --git a/desktop/src/main/java/haveno/desktop/haveno.css b/desktop/src/main/java/haveno/desktop/haveno.css index 3af7671e16..4e83d00f3e 100644 --- a/desktop/src/main/java/haveno/desktop/haveno.css +++ b/desktop/src/main/java/haveno/desktop/haveno.css @@ -105,6 +105,12 @@ -fx-font-size: 1.077em; -fx-font-family: "IBM Plex Mono"; -fx-padding: 0 !important; + -fx-border-width: 0; + -fx-translate-x: -2; +} + +.confirmation-text-field-as-label-icon { + -fx-translate-y: -7; } /* Other UI Elements */