recoverykey_display.fxml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.TextField?>
  6. <?import javafx.scene.layout.HBox?>
  7. <?import javafx.scene.layout.StackPane?>
  8. <?import javafx.scene.layout.VBox?>
  9. <?import javafx.scene.shape.Circle?>
  10. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  11. <VBox xmlns="http://javafx.com/javafx"
  12. xmlns:fx="http://javafx.com/fxml"
  13. fx:controller="org.cryptomator.ui.recoverykey.RecoveryKeyDisplayController"
  14. minWidth="400"
  15. maxWidth="400"
  16. minHeight="145"
  17. spacing="12"
  18. alignment="TOP_CENTER">
  19. <padding>
  20. <Insets topRightBottomLeft="12"/>
  21. </padding>
  22. <children>
  23. <HBox spacing="12" alignment="CENTER_LEFT" VBox.vgrow="ALWAYS">
  24. <StackPane alignment="CENTER" HBox.hgrow="NEVER">
  25. <Circle styleClass="glyph-icon-primary" radius="24"/>
  26. <FontAwesome5IconView styleClass="glyph-icon-white" glyph="CHECK" glyphSize="24"/>
  27. </StackPane>
  28. <!-- TODO use TextArea instead -->
  29. <TextField editable="false" text="${controller.recoveryKey}" HBox.hgrow="ALWAYS"/>
  30. </HBox>
  31. <VBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
  32. <ButtonBar buttonMinWidth="120" buttonOrder="+C">
  33. <buttons>
  34. <Button text="%generic.button.done" ButtonBar.buttonData="CANCEL_CLOSE" cancelButton="true" onAction="#close"/>
  35. </buttons>
  36. </ButtonBar>
  37. </VBox>
  38. </children>
  39. </VBox>