recoverykey_display.fxml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.scene.control.Button?>
  5. <?import javafx.scene.control.ButtonBar?>
  6. <?import javafx.scene.control.Label?>
  7. <?import javafx.scene.control.TextArea?>
  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.recoverykey.RecoveryKeyDisplayController"
  13. minWidth="350"
  14. minHeight="280"
  15. spacing="12"
  16. alignment="TOP_LEFT">
  17. <children>
  18. <FormattedLabel format="%recoveryKey.display.description" arg1="${controller.vaultName}" wrapText="true"/>
  19. <TextArea editable="false" text="${controller.recoveryKey}" wrapText="true" prefRowCount="4" fx:id="textarea"/>
  20. <ButtonBar buttonMinWidth="120" buttonOrder="+R">
  21. <buttons>
  22. <Button text="%generic.button.print" ButtonBar.buttonData="RIGHT" onAction="#printRecoveryKey" visible="${controller.printerSupported}">
  23. <graphic>
  24. <FontAwesome5IconView glyph="PRINT"/>
  25. </graphic>
  26. </Button>
  27. <Button fx:id="copyButton" text="%generic.button.copy" ButtonBar.buttonData="RIGHT" onAction="#copyRecoveryKey">
  28. <graphic>
  29. <FontAwesome5IconView glyph="COPY"/>
  30. </graphic>
  31. </Button>
  32. </buttons>
  33. </ButtonBar>
  34. <Region VBox.vgrow="ALWAYS"/>
  35. <Label text="%recoveryKey.display.StorageHints" wrapText="true"/>
  36. </children>
  37. </VBox>