mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
change cancel button text to close on qr display and scan dialogs
This commit is contained in:
parent
30001051c7
commit
fbc49fd6f5
2 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ public class QRDisplayDialog extends Dialog<ButtonType> {
|
||||||
createAnimateQRService();
|
createAnimateQRService();
|
||||||
}
|
}
|
||||||
|
|
||||||
final ButtonType cancelButtonType = new javafx.scene.control.ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
|
final ButtonType cancelButtonType = new javafx.scene.control.ButtonType("Close", ButtonBar.ButtonData.CANCEL_CLOSE);
|
||||||
dialogPane.getButtonTypes().add(cancelButtonType);
|
dialogPane.getButtonTypes().add(cancelButtonType);
|
||||||
|
|
||||||
if(addLegacyEncodingOption) {
|
if(addLegacyEncodingOption) {
|
||||||
|
@ -134,7 +134,7 @@ public class QRDisplayDialog extends Dialog<ButtonType> {
|
||||||
dialogPane.setContent(Borders.wrap(stackPane).lineBorder().buildAll());
|
dialogPane.setContent(Borders.wrap(stackPane).lineBorder().buildAll());
|
||||||
qrImageView.setImage(getQrCode(data));
|
qrImageView.setImage(getQrCode(data));
|
||||||
|
|
||||||
final ButtonType cancelButtonType = new javafx.scene.control.ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
|
final ButtonType cancelButtonType = new javafx.scene.control.ButtonType("Close", ButtonBar.ButtonData.CANCEL_CLOSE);
|
||||||
dialogPane.getButtonTypes().addAll(cancelButtonType);
|
dialogPane.getButtonTypes().addAll(cancelButtonType);
|
||||||
|
|
||||||
if(addScanButton) {
|
if(addScanButton) {
|
||||||
|
|
|
@ -167,7 +167,7 @@ public class QRScanDialog extends Dialog<QRScanDialog.Result> {
|
||||||
Platform.runLater(() -> webcamResolutionProperty.set(null));
|
Platform.runLater(() -> webcamResolutionProperty.set(null));
|
||||||
});
|
});
|
||||||
|
|
||||||
final ButtonType cancelButtonType = new javafx.scene.control.ButtonType("Cancel", ButtonBar.ButtonData.CANCEL_CLOSE);
|
final ButtonType cancelButtonType = new javafx.scene.control.ButtonType("Close", ButtonBar.ButtonData.CANCEL_CLOSE);
|
||||||
final ButtonType hdButtonType = new javafx.scene.control.ButtonType("Use HD Capture", ButtonBar.ButtonData.LEFT);
|
final ButtonType hdButtonType = new javafx.scene.control.ButtonType("Use HD Capture", ButtonBar.ButtonData.LEFT);
|
||||||
final ButtonType camButtonType = new javafx.scene.control.ButtonType("Default Camera", ButtonBar.ButtonData.HELP_2);
|
final ButtonType camButtonType = new javafx.scene.control.ButtonType("Default Camera", ButtonBar.ButtonData.HELP_2);
|
||||||
dialogPane.getButtonTypes().addAll(hdButtonType, camButtonType, cancelButtonType);
|
dialogPane.getButtonTypes().addAll(hdButtonType, camButtonType, cancelButtonType);
|
||||||
|
|
Loading…
Reference in a new issue