addvault_existing.fxml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.geometry.Insets?>
  3. <?import javafx.scene.control.Button?>
  4. <?import javafx.scene.control.ButtonBar?>
  5. <?import javafx.scene.control.CheckBox?>
  6. <?import javafx.scene.control.Label?>
  7. <?import javafx.scene.image.ImageView?>
  8. <?import javafx.scene.layout.Region?>
  9. <?import javafx.scene.layout.VBox?>
  10. <VBox xmlns:fx="http://javafx.com/fxml"
  11. xmlns="http://javafx.com/javafx"
  12. fx:controller="org.cryptomator.ui.addvaultwizard.ChooseExistingVaultController"
  13. prefWidth="450"
  14. prefHeight="480">
  15. <padding>
  16. <Insets topRightBottomLeft="24"/>
  17. </padding>
  18. <children>
  19. <ImageView VBox.vgrow="ALWAYS" fitWidth="400" preserveRatio="true" smooth="true" image="${controller.screenshot}"/>
  20. <Label text="%addvaultwizard.existing.instruction" wrapText="true">
  21. <padding>
  22. <Insets bottom="6" top="6"/>
  23. </padding>
  24. </Label>
  25. <CheckBox fx:id="restoreCheckBox" text="%addvaultwizard.existing.instruction.restore" wrapText="true"/>
  26. <Region VBox.vgrow="ALWAYS"/>
  27. <ButtonBar buttonMinWidth="120" buttonOrder="+CX">
  28. <buttons>
  29. <Button text="%addvaultwizard.existing.restore" ButtonBar.buttonData="NEXT_FORWARD" onAction="#restoreVaultConfigWithRecoveryKey" visible="${controller.restoreButtonVisible}"/>
  30. <Button text="%addvaultwizard.existing.chooseBtn" ButtonBar.buttonData="NEXT_FORWARD" onAction="#chooseFileAndNext" defaultButton="true"/>
  31. </buttons>
  32. </ButtonBar>
  33. </children>
  34. </VBox>