share_vault.fxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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.Label?>
  6. <?import javafx.scene.layout.Region?>
  7. <?import javafx.scene.layout.VBox?>
  8. <?import javafx.scene.layout.HBox?>
  9. <?import javafx.scene.layout.StackPane?>
  10. <?import javafx.scene.shape.Circle?>
  11. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  12. <?import javafx.scene.image.ImageView?>
  13. <?import javafx.scene.image.Image?>
  14. <?import javafx.scene.control.Hyperlink?>
  15. <?import javafx.scene.control.Tooltip?>
  16. <?import javafx.scene.Group?>
  17. <?import javafx.scene.layout.GridPane?>
  18. <?import javafx.scene.layout.ColumnConstraints?>
  19. <?import javafx.scene.layout.RowConstraints?>
  20. <HBox xmlns:fx="http://javafx.com/fxml"
  21. xmlns="http://javafx.com/javafx"
  22. fx:controller="org.cryptomator.ui.sharevault.ShareVaultController"
  23. prefWidth="580"
  24. spacing="12">
  25. <padding>
  26. <Insets topRightBottomLeft="12"/>
  27. </padding>
  28. <Group>
  29. <StackPane>
  30. <padding>
  31. <Insets topRightBottomLeft="6"/>
  32. </padding>
  33. <Circle styleClass="glyph-icon-primary" radius="24"/>
  34. <FontAwesome5IconView styleClass="glyph-icon-white" glyph="INFO" glyphSize="24"/>
  35. </StackPane>
  36. </Group>
  37. <VBox>
  38. <VBox HBox.hgrow="ALWAYS" visible="${controller.hubVault}" managed="${controller.hubVault}">
  39. <Label text="%shareVault.hub.message" styleClass="label-extra-large" wrapText="true"/>
  40. <Region minHeight="15"/>
  41. <Label text="%shareVault.hub.description" wrapText="true"/>
  42. <GridPane alignment="CENTER_LEFT">
  43. <padding>
  44. <Insets left="6"/>
  45. </padding>
  46. <columnConstraints>
  47. <ColumnConstraints minWidth="20" halignment="LEFT"/>
  48. </columnConstraints>
  49. <rowConstraints>
  50. <RowConstraints valignment="TOP"/>
  51. <RowConstraints valignment="TOP"/>
  52. </rowConstraints>
  53. <Label text="1." GridPane.rowIndex="0" GridPane.columnIndex="0"/>
  54. <Label text="%shareVault.hub.instruction.0" wrapText="true" GridPane.rowIndex="0" GridPane.columnIndex="1"/>
  55. <Label text="2." GridPane.rowIndex="1" GridPane.columnIndex="0"/>
  56. <Label text="%shareVault.hub.instruction.1" wrapText="true" GridPane.rowIndex="1" GridPane.columnIndex="1"/>
  57. </GridPane>
  58. </VBox>
  59. <VBox HBox.hgrow="ALWAYS" visible="${!controller.hubVault}" managed="${!controller.hubVault}">
  60. <Label text="%shareVault.message" styleClass="label-extra-large" wrapText="true"/>
  61. <Region minHeight="12"/>
  62. <Label text="%shareVault.description" wrapText="true"/>
  63. <GridPane alignment="CENTER_LEFT">
  64. <padding>
  65. <Insets left="6"/>
  66. </padding>
  67. <columnConstraints>
  68. <ColumnConstraints minWidth="20" halignment="LEFT"/>
  69. </columnConstraints>
  70. <rowConstraints>
  71. <RowConstraints valignment="TOP"/>
  72. <RowConstraints valignment="TOP"/>
  73. </rowConstraints>
  74. <Label text="1." GridPane.rowIndex="0" GridPane.columnIndex="0"/>
  75. <Label text="%shareVault.instruction.0" wrapText="true" GridPane.rowIndex="0" GridPane.columnIndex="1"/>
  76. <Label text="2." GridPane.rowIndex="1" GridPane.columnIndex="0"/>
  77. <Label text="%shareVault.instruction.1" wrapText="true" GridPane.rowIndex="1" GridPane.columnIndex="1"/>
  78. </GridPane>
  79. <Region minHeight="12"/>
  80. <HBox HBox.hgrow="ALWAYS" spacing="6">
  81. <Label text="%shareVault.more" wrapText="true" VBox.vgrow="ALWAYS"/>
  82. <Hyperlink contentDisplay="GRAPHIC_ONLY" onAction="#visitBestPractices">
  83. <graphic>
  84. <FontAwesome5IconView glyph="QUESTION_CIRCLE" styleClass="glyph-icon-muted"/>
  85. </graphic>
  86. <tooltip>
  87. <Tooltip text="%shareVault.docsTooltip" showDelay="100ms"/>
  88. </tooltip>
  89. </Hyperlink>
  90. </HBox>
  91. <Region minHeight="12"/>
  92. <HBox alignment="CENTER_LEFT" spacing="6" style="-fx-padding: 10px; -fx-background-color: white; -fx-border-color: #dddddd; -fx-border-width: 2px; -fx-border-radius: 5px;">
  93. <VBox spacing="6" alignment="CENTER_LEFT">
  94. <ImageView HBox.hgrow="ALWAYS" fitWidth="180" preserveRatio="true" cache="true">
  95. <Image url="@../img/hub_logo.png"/>
  96. </ImageView>
  97. <Label text="%shareVault.info.1" style="-fx-font-weight: bold;" wrapText="true"/>
  98. <VBox spacing="6" alignment="CENTER_LEFT">
  99. <padding>
  100. <Insets left="6"/>
  101. </padding>
  102. <Label text="%shareVault.info.2" wrapText="true"/>
  103. <Label text="%shareVault.info.3" wrapText="true"/>
  104. <Label text="%shareVault.info.4" wrapText="true"/>
  105. </VBox>
  106. </VBox>
  107. <Region HBox.hgrow="ALWAYS"/>
  108. <ImageView HBox.hgrow="ALWAYS" fitWidth="180" preserveRatio="true" cache="true">
  109. <Image url="@../img/group-magic.png"/>
  110. </ImageView>
  111. </HBox>
  112. </VBox>
  113. <Region VBox.vgrow="ALWAYS" minHeight="18"/>
  114. <ButtonBar buttonMinWidth="120" buttonOrder="+CX">
  115. <buttons>
  116. <Button text="%generic.button.close" ButtonBar.buttonData="CANCEL_CLOSE" onAction="#close"/>
  117. <Button text="%shareVault.hub.openHub" ButtonBar.buttonData="NEXT_FORWARD" defaultButton="true" onAction="#openHub" visible="${controller.hubVault}" managed="${controller.hubVault}"/>
  118. <Button text="%shareVault.visitHub" ButtonBar.buttonData="NEXT_FORWARD" defaultButton="true" onAction="#visitHub" visible="${!controller.hubVault}" managed="${!controller.hubVault}"/>
  119. </buttons>
  120. </ButtonBar>
  121. </VBox>
  122. </HBox>