mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-17 10:50:55 -04:00
fix height of copy icon for text fields as label
This commit is contained in:
parent
6d84edf577
commit
d4904ad8ad
2 changed files with 7 additions and 0 deletions
|
@ -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 -> {
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue