mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
tweaks and fixes
This commit is contained in:
parent
fca55779bf
commit
a188f70dbe
4 changed files with 10 additions and 3 deletions
|
@ -84,6 +84,7 @@ public class MnemonicKeystoreImportPane extends TitledDescriptionPane {
|
|||
importButton = new SplitMenuButton();
|
||||
importButton.setAlignment(Pos.CENTER_RIGHT);
|
||||
importButton.setText("Import Keystore");
|
||||
importButton.getStyleClass().add("default-button");
|
||||
importButton.setOnAction(event -> {
|
||||
importButton.setDisable(true);
|
||||
importKeystore(wallet.getScriptType().getDefaultDerivation(), false);
|
||||
|
@ -155,11 +156,13 @@ public class MnemonicKeystoreImportPane extends TitledDescriptionPane {
|
|||
});
|
||||
confirmButton.managedProperty().bind(confirmButton.visibleProperty());
|
||||
confirmButton.setVisible(false);
|
||||
confirmButton.setDefaultButton(true);
|
||||
buttonPane.getChildren().add(confirmButton);
|
||||
AnchorPane.setRightAnchor(confirmButton, 0.0);
|
||||
|
||||
verifyButton = new Button("Verify");
|
||||
verifyButton.setDisable(true);
|
||||
verifyButton.setDefaultButton(true);
|
||||
verifyButton.setOnAction(event -> {
|
||||
prepareImport();
|
||||
});
|
||||
|
|
|
@ -104,7 +104,7 @@ public class WalletController extends WalletFormController implements Initializa
|
|||
@Subscribe
|
||||
public void walletSettingsChanged(WalletSettingsChangedEvent event) {
|
||||
if(event.getWalletFile().equals(walletForm.getWalletFile())) {
|
||||
configure(walletForm.getWallet().isValid());
|
||||
configure(event.getWallet().isValid());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -122,3 +122,7 @@
|
|||
.help-label {
|
||||
-fx-padding: 0 0 0 10;
|
||||
}
|
||||
|
||||
.default-button {
|
||||
-fx-base: -fx-default-button;
|
||||
}
|
|
@ -79,11 +79,11 @@
|
|||
}
|
||||
|
||||
.segment0 .progress-bar {
|
||||
-fx-accent: CHART_COLOR_3;
|
||||
|
||||
}
|
||||
|
||||
.segment1 .progress-bar {
|
||||
-fx-accent: CHART_COLOR_4;
|
||||
-fx-accent: CHART_COLOR_3;
|
||||
}
|
||||
|
||||
.segment2 .progress-bar {
|
||||
|
|
Loading…
Reference in a new issue