unlock_enter_password.fxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import org.cryptomator.ui.controls.FormattedLabel?>
  3. <?import org.cryptomator.ui.controls.NiceSecurePasswordField?>
  4. <?import javafx.geometry.Insets?>
  5. <?import javafx.scene.control.Button?>
  6. <?import javafx.scene.control.ButtonBar?>
  7. <?import javafx.scene.control.CheckBox?>
  8. <?import javafx.scene.image.Image?>
  9. <?import javafx.scene.image.ImageView?>
  10. <?import javafx.scene.layout.HBox?>
  11. <?import javafx.scene.layout.StackPane?>
  12. <?import javafx.scene.layout.VBox?>
  13. <?import org.cryptomator.ui.controls.FontAwesome5Spinner?>
  14. <VBox xmlns:fx="http://javafx.com/fxml"
  15. xmlns="http://javafx.com/javafx"
  16. fx:controller="org.cryptomator.ui.keyloading.masterkeyfile.PassphraseEntryController"
  17. minWidth="400"
  18. maxWidth="400"
  19. minHeight="145"
  20. spacing="12">
  21. <padding>
  22. <Insets topRightBottomLeft="12"/>
  23. </padding>
  24. <children>
  25. <HBox spacing="12" VBox.vgrow="ALWAYS">
  26. <StackPane alignment="CENTER" HBox.hgrow="NEVER">
  27. <ImageView VBox.vgrow="ALWAYS" fitWidth="64" preserveRatio="true" smooth="true" cache="true" fx:id="face" visible="false">
  28. <Image url="@../img/bot/face.png"/>
  29. </ImageView>
  30. <ImageView VBox.vgrow="ALWAYS" fitWidth="64" preserveRatio="true" smooth="true" cache="true" fx:id="leftArm" visible="false">
  31. <Image url="@../img/bot/arm-l.png"/>
  32. </ImageView>
  33. <ImageView VBox.vgrow="ALWAYS" fitWidth="64" preserveRatio="true" smooth="true" cache="true" fx:id="rightArm" visible="false">
  34. <Image url="@../img/bot/arm-r.png"/>
  35. </ImageView>
  36. <ImageView VBox.vgrow="ALWAYS" fitWidth="64" preserveRatio="true" smooth="true" cache="true" fx:id="legs" visible="false">
  37. <Image url="@../img/bot/legs.png"/>
  38. </ImageView>
  39. <ImageView VBox.vgrow="ALWAYS" fitWidth="64" preserveRatio="true" smooth="true" cache="true" fx:id="body">
  40. <Image url="@../img/bot/body.png"/>
  41. </ImageView>
  42. </StackPane>
  43. <VBox spacing="6" HBox.hgrow="ALWAYS">
  44. <FormattedLabel format="%unlock.passwordPrompt" arg1="${controller.vaultName}" wrapText="true"/>
  45. <NiceSecurePasswordField fx:id="passwordField" disable="${controller.userInteractionDisabled}"/>
  46. <CheckBox fx:id="savePasswordCheckbox" text="%unlock.savePassword" onAction="#didClickSavePasswordCheckbox" disable="${controller.userInteractionDisabled}" visible="${controller.keychainAccessAvailable}"/>
  47. </VBox>
  48. </HBox>
  49. <VBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
  50. <ButtonBar buttonMinWidth="120" buttonOrder="+CI">
  51. <buttons>
  52. <Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" cancelButton="true" onAction="#cancel" disable="${controller.userInteractionDisabled}"/>
  53. <Button text="%unlock.unlockBtn" ButtonBar.buttonData="FINISH" defaultButton="true" onAction="#unlock" contentDisplay="${controller.unlockButtonContentDisplay}" disable="${controller.unlockButtonDisabled}">
  54. <graphic>
  55. <FontAwesome5Spinner glyphSize="12" />
  56. </graphic>
  57. </Button>
  58. </buttons>
  59. </ButtonBar>
  60. </VBox>
  61. </children>
  62. </VBox>