addvault_new_expert_settings.fxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  3. <?import org.cryptomator.ui.controls.NumericTextField?>
  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.control.Hyperlink?>
  9. <?import javafx.scene.control.Label?>
  10. <?import javafx.scene.control.Tooltip?>
  11. <?import javafx.scene.layout.HBox?>
  12. <?import javafx.scene.layout.Region?>
  13. <?import javafx.scene.layout.StackPane?>
  14. <?import javafx.scene.layout.VBox?>
  15. <VBox xmlns:fx="http://javafx.com/fxml"
  16. xmlns="http://javafx.com/javafx"
  17. fx:controller="org.cryptomator.ui.addvaultwizard.CreateNewVaultExpertSettingsController"
  18. prefWidth="450"
  19. prefHeight="450"
  20. spacing="12"
  21. alignment="CENTER_LEFT">
  22. <padding>
  23. <Insets topRightBottomLeft="24"/>
  24. </padding>
  25. <children>
  26. <Region prefHeight="12" VBox.vgrow="NEVER"/>
  27. <Label fx:id="vaultNameLabel" alignment="CENTER_RIGHT" graphicTextGap="6" wrapText="true">
  28. <graphic>
  29. <FontAwesome5IconView styleClass="glyph-icon-muted" wrappingWidth="12" glyph="PENCIL"/>
  30. </graphic>
  31. </Label>
  32. <Label fx:id="vaultPathLabel" alignment="CENTER_RIGHT" graphicTextGap="6" wrapText="true">
  33. <graphic>
  34. <FontAwesome5IconView styleClass="glyph-icon-muted" wrappingWidth="12" glyph="HDD"/>
  35. </graphic>
  36. </Label>
  37. <Region prefHeight="12" VBox.vgrow="NEVER"/>
  38. <CheckBox fx:id="expertSettingsCheckBox" text="%addvaultwizard.new.expertSettings.enableExpertSettingsCheckbox" onAction="#toggleUseExpertSettings"/>
  39. <VBox spacing="6" visible="${expertSettingsCheckBox.selected}">
  40. <HBox spacing="2" HBox.hgrow="NEVER">
  41. <Label text="%addvaultwizard.new.expertSettings.shorteningThreshold.title"/>
  42. <Region prefWidth="2"/>
  43. <Hyperlink contentDisplay="GRAPHIC_ONLY" onAction="#openDocs">
  44. <graphic>
  45. <FontAwesome5IconView glyph="QUESTION_CIRCLE" styleClass="glyph-icon-muted"/>
  46. </graphic>
  47. <tooltip>
  48. <Tooltip text="%addvaultwizard.new.expertSettings.shorteningThreshold.tooltip" showDelay="10ms"/>
  49. </tooltip>
  50. </Hyperlink>
  51. </HBox>
  52. <HBox>
  53. <NumericTextField fx:id="shorteningThresholdTextField"/>
  54. <Region prefWidth="4" HBox.hgrow="NEVER"/>
  55. <StackPane>
  56. <Label styleClass="label-muted" text="%addvaultwizard.new.expertSettings.shorteningThreshold.invalid" textAlignment="RIGHT" alignment="CENTER_RIGHT" visible="${!controller.validShorteningThreshold}" graphicTextGap="6">
  57. <graphic>
  58. <FontAwesome5IconView styleClass="glyph-icon-red" glyph="TIMES"/>
  59. </graphic>
  60. </Label>
  61. <Label styleClass="label-muted" text="%addvaultwizard.new.expertSettings.shorteningThreshold.valid" textAlignment="RIGHT" alignment="CENTER_RIGHT" visible="${controller.validShorteningThreshold}" graphicTextGap="6">
  62. <graphic>
  63. <FontAwesome5IconView styleClass="glyph-icon-primary" glyph="CHECK"/>
  64. </graphic>
  65. </Label>
  66. </StackPane>
  67. </HBox>
  68. <Label styleClass="label-muted" text="%addvaultwizard.new.expertSettings.shorteningThreshold.message" visible="${!controller.validShorteningThreshold}"/>
  69. </VBox>
  70. <Region VBox.vgrow="ALWAYS"/>
  71. <ButtonBar buttonMinWidth="120" buttonOrder="B+X">
  72. <buttons>
  73. <Button text="%generic.button.back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#back"/>
  74. <Button text="%generic.button.next" ButtonBar.buttonData="NEXT_FORWARD" onAction="#next" defaultButton="true" disable="${!controller.validShorteningThreshold}"/>
  75. </buttons>
  76. </ButtonBar>
  77. </children>
  78. </VBox>