vault_options_general.fxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.geometry.Insets?>
  3. <?import javafx.scene.control.CheckBox?>
  4. <?import javafx.scene.control.ChoiceBox?>
  5. <?import javafx.scene.control.Label?>
  6. <?import javafx.scene.control.TextField?>
  7. <?import javafx.scene.layout.HBox?>
  8. <?import javafx.scene.layout.VBox?>
  9. <?import javafx.scene.control.Button?>
  10. <?import javafx.scene.text.TextFlow?>
  11. <?import javafx.scene.text.Text?>
  12. <?import org.cryptomator.ui.controls.NumericTextField?>
  13. <?import org.cryptomator.ui.controls.FormattedLabel?>
  14. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  15. <VBox xmlns:fx="http://javafx.com/fxml"
  16. xmlns="http://javafx.com/javafx"
  17. fx:controller="org.cryptomator.ui.vaultoptions.GeneralVaultOptionsController"
  18. spacing="6">
  19. <padding>
  20. <Insets topRightBottomLeft="12"/>
  21. </padding>
  22. <children>
  23. <HBox spacing="6" alignment="CENTER_LEFT">
  24. <Label text="%vaultOptions.general.vaultName"/>
  25. <TextField fx:id="vaultName"/>
  26. </HBox>
  27. <TextFlow styleClass="text-flow" prefWidth="-Infinity">
  28. <CheckBox text="%vaultOptions.general.autoLock.lockAfterTimePart1" fx:id="lockAfterTimeCheckbox"/>
  29. <Text text=" "/>
  30. <NumericTextField fx:id="lockTimeInMinutesTextField" prefWidth="50"/>
  31. <Text text=" "/>
  32. <FormattedLabel format="%vaultOptions.general.autoLock.lockAfterTimePart2"/>
  33. </TextFlow>
  34. <CheckBox text="%vaultOptions.general.unlockAfterStartup" fx:id="unlockOnStartupCheckbox"/>
  35. <HBox spacing="6" alignment="CENTER_LEFT">
  36. <Label text="%vaultOptions.general.actionAfterUnlock"/>
  37. <ChoiceBox fx:id="actionAfterUnlockChoiceBox"/>
  38. </HBox>
  39. <Button fx:id="healthCheckButton" text="%vaultOptions.general.startBtn" onAction="#startHealthCheck">
  40. <graphic>
  41. <FontAwesome5IconView glyph="STETHOSCOPE"/>
  42. </graphic>
  43. </Button>
  44. </children>
  45. </VBox>