Browse Source

keystore buttons label tooltips

bwt
Craig Raw 4 years ago
parent
commit
133d771c09
  1. 1
      src/main/java/com/sparrowwallet/sparrow/wallet/KeystoreController.java
  2. 4
      src/main/resources/com/sparrowwallet/sparrow/wallet/keystore.fxml

1
src/main/java/com/sparrowwallet/sparrow/wallet/KeystoreController.java

@ -180,6 +180,7 @@ public class KeystoreController extends WalletFormController implements Initiali
viewSeedButton.setVisible(keystore.getSource() == KeystoreSource.SW_SEED); viewSeedButton.setVisible(keystore.getSource() == KeystoreSource.SW_SEED);
importButton.setText(keystore.getSource() == KeystoreSource.SW_WATCH ? "Import..." : "Replace..."); importButton.setText(keystore.getSource() == KeystoreSource.SW_WATCH ? "Import..." : "Replace...");
importButton.setTooltip(new Tooltip(keystore.getSource() == KeystoreSource.SW_WATCH ? "Import a keystore from an external source" : "Replace this keystore with another source"));
boolean editable = (keystore.getSource() == KeystoreSource.SW_WATCH); boolean editable = (keystore.getSource() == KeystoreSource.SW_WATCH);
fingerprint.setEditable(editable); fingerprint.setEditable(editable);

4
src/main/resources/com/sparrowwallet/sparrow/wallet/keystore.fxml

@ -21,12 +21,12 @@
<Fieldset inputGrow="SOMETIMES" text=""> <Fieldset inputGrow="SOMETIMES" text="">
<Field text="Type:"> <Field text="Type:">
<Label fx:id="type" graphicTextGap="8"/> <Label fx:id="type" graphicTextGap="8"/>
<Button fx:id="viewSeedButton" onAction="#showSeed"> <Button fx:id="viewSeedButton" text="View Seed..." graphicTextGap="5" onAction="#showSeed">
<graphic> <graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="KEY" /> <Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="KEY" />
</graphic> </graphic>
<tooltip> <tooltip>
<Tooltip text="View Seed..."/> <Tooltip text="View mnemonic seed words"/>
</tooltip> </tooltip>
</Button> </Button>
<Pane HBox.hgrow="ALWAYS" /> <Pane HBox.hgrow="ALWAYS" />

Loading…
Cancel
Save