addvault_success.fxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  3. <?import org.cryptomator.ui.controls.FormattedLabel?>
  4. <?import javafx.geometry.Insets?>
  5. <?import javafx.scene.control.Button?>
  6. <?import javafx.scene.control.ButtonBar?>
  7. <?import javafx.scene.layout.HBox?>
  8. <?import javafx.scene.layout.Region?>
  9. <?import javafx.scene.layout.StackPane?>
  10. <?import javafx.scene.layout.VBox?>
  11. <?import javafx.scene.shape.Circle?>
  12. <VBox xmlns:fx="http://javafx.com/fxml"
  13. xmlns="http://javafx.com/javafx"
  14. fx:controller="org.cryptomator.ui.addvaultwizard.AddVaultSuccessController"
  15. prefWidth="450"
  16. prefHeight="450"
  17. spacing="12"
  18. alignment="TOP_CENTER">
  19. <padding>
  20. <Insets topRightBottomLeft="24"/>
  21. </padding>
  22. <children>
  23. <Region VBox.vgrow="ALWAYS"/>
  24. <StackPane alignment="CENTER" HBox.hgrow="NEVER">
  25. <Circle styleClass="glyph-icon-primary" radius="36"/>
  26. <FontAwesome5IconView styleClass="glyph-icon-white" glyph="CHECK" glyphSize="36"/>
  27. </StackPane>
  28. <Region VBox.vgrow="ALWAYS"/>
  29. <FormattedLabel format="%addvaultwizard.success.nextStepsInstructions" arg1="${controller.vault.displayName}" wrapText="true" HBox.hgrow="ALWAYS"/>
  30. <Region VBox.vgrow="ALWAYS"/>
  31. <ButtonBar buttonMinWidth="120" buttonOrder="+IU">
  32. <buttons>
  33. <Button text="%generic.button.done" ButtonBar.buttonData="FINISH" onAction="#close" defaultButton="${!controller.vault.locked}"/>
  34. <Button text="%addvaultwizard.success.unlockNow" ButtonBar.buttonData="OTHER" onAction="#unlockAndClose" defaultButton="${controller.vault.locked}" visible="${controller.vault.locked}"/>
  35. </buttons>
  36. </ButtonBar>
  37. </children>
  38. </VBox>