tweak button to copy passphrase

This commit is contained in:
woodser 2025-05-25 13:39:07 -04:00
parent cc9944b857
commit 98ea02f127
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
2 changed files with 3 additions and 3 deletions

View file

@ -2626,7 +2626,7 @@ textfield */
} }
.passphrase-copy-box .jfx-button { .passphrase-copy-box .jfx-button {
-fx-padding: 4 12 4 12; -fx-padding: 5 15 5 15;
-fx-background-radius: 999; -fx-background-radius: 999;
-fx-border-radius: 999; -fx-border-radius: 999;
-fx-min-height: 0; -fx-min-height: 0;

View file

@ -404,7 +404,7 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
GridPane.setHalignment(label, HPos.LEFT); GridPane.setHalignment(label, HPos.LEFT);
GridPane.setValignment(label, VPos.TOP); 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 vbox = new VBox(13);
vbox.setAlignment(Pos.TOP_CENTER); vbox.setAlignment(Pos.TOP_CENTER);
VBox.setVgrow(vbox, Priority.ALWAYS); VBox.setVgrow(vbox, Priority.ALWAYS);
@ -420,7 +420,7 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
Label copyIcon = new Label(); Label copyIcon = new Label();
copyIcon.getStyleClass().addAll("icon", "highlight"); copyIcon.getStyleClass().addAll("icon", "highlight");
copyIcon.setTooltip(new Tooltip(Res.get("shared.copyToClipboard"))); 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); JFXButton copyButton = new JFXButton(Res.get("offerDetailsWindow.challenge.copy"), copyIcon);
copyButton.setContentDisplay(ContentDisplay.LEFT); copyButton.setContentDisplay(ContentDisplay.LEFT);
copyButton.setGraphicTextGap(10); copyButton.setGraphicTextGap(10);