vault_detail_unlocked.fxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  2. <?import org.cryptomator.ui.controls.ThroughputLabel?>
  3. <?import javafx.geometry.Insets?>
  4. <?import javafx.scene.control.Button?>
  5. <?import javafx.scene.control.Label?>
  6. <?import javafx.scene.control.Tooltip?>
  7. <?import javafx.scene.layout.HBox?>
  8. <?import javafx.scene.layout.Region?>
  9. <?import javafx.scene.layout.StackPane?>
  10. <?import javafx.scene.layout.VBox?>
  11. <?import javafx.scene.text.Text?>
  12. <?import javafx.scene.control.ListView?>
  13. <StackPane xmlns:fx="http://javafx.com/fxml"
  14. xmlns="http://javafx.com/javafx"
  15. fx:controller="org.cryptomator.ui.mainwindow.VaultDetailUnlockedController"
  16. >
  17. <VBox spacing="9" alignment="TOP_CENTER">
  18. <Label text="%main.vaultDetail.accessLocation"/>
  19. <Button styleClass="button-large" contentDisplay="GRAPHIC_ONLY" minWidth="120" onAction="#revealAccessLocation" defaultButton="${controller.accessibleViaPath}" visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
  20. <graphic>
  21. <HBox spacing="12" alignment="CENTER">
  22. <FontAwesome5IconView glyph="HDD" glyphSize="24"/>
  23. <VBox spacing="4" alignment="CENTER_LEFT">
  24. <Label text="%main.vaultDetail.revealBtn"/>
  25. <Label styleClass="label-extra-small" text="${controller.mountPoint}" textOverrun="CENTER_ELLIPSIS"/>
  26. </VBox>
  27. </HBox>
  28. </graphic>
  29. </Button>
  30. <Button styleClass="button-large" contentDisplay="GRAPHIC_ONLY" minWidth="120" onAction="#copyMountUri" defaultButton="${controller.accessibleViaUri}" visible="${controller.accessibleViaUri}" managed="${controller.accessibleViaUri}">
  31. <graphic>
  32. <HBox spacing="12" alignment="CENTER">
  33. <FontAwesome5IconView glyph="LINK" glyphSize="24"/>
  34. <VBox spacing="4" alignment="CENTER_LEFT">
  35. <Label text="%main.vaultDetail.copyUri"/>
  36. <Label styleClass="label-extra-small" text="${controller.mountPoint}" textOverrun="CENTER_ELLIPSIS"/>
  37. </VBox>
  38. </HBox>
  39. </graphic>
  40. </Button>
  41. <Button text="%main.vaultDetail.lockBtn" minWidth="120" onAction="#lock">
  42. <graphic>
  43. <FontAwesome5IconView glyph="KEY"/>
  44. </graphic>
  45. </Button>
  46. <Region VBox.vgrow="ALWAYS"/>
  47. <HBox alignment="BOTTOM_CENTER">
  48. <StackPane visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
  49. <padding>
  50. <Insets topRightBottomLeft="0"/>
  51. </padding>
  52. <Button fx:id="revealEncryptedDropZone" styleClass="drag-n-drop" text="%main.vaultDetail.locateEncryptedFileBtn" minWidth="120" maxWidth="180" prefHeight="72" wrapText="true" textAlignment="CENTER" onAction="#chooseDecryptedFileAndReveal" contentDisplay="TOP" visible="${!controller.ciphertextPathsCopied}" managed="${!controller.ciphertextPathsCopied}">
  53. <graphic>
  54. <Text styleClass="cryptic-text" text="abc → 101010"/>
  55. </graphic>
  56. <tooltip>
  57. <Tooltip text="%main.vaultDetail.locateEncryptedFileBtn.tooltip"/>
  58. </tooltip>
  59. </Button>
  60. </StackPane>
  61. <!-- decrypt file name -->
  62. <StackPane>
  63. <padding>
  64. <Insets topRightBottomLeft="0"/>
  65. </padding>
  66. <Button fx:id="decryptNameDropZone" styleClass="drag-n-drop" text="%main.vaultDetail.decryptName.buttonLabel" minWidth="120" maxWidth="180" prefHeight="72" wrapText="true" textAlignment="CENTER" onAction="#showDecryptNameView" contentDisplay="TOP">
  67. <graphic>
  68. <Text styleClass="cryptic-text" text="101010 → abc"/>
  69. </graphic>
  70. <tooltip>
  71. <Tooltip text="%main.vaultDetail.decryptName.tooltip"/>
  72. </tooltip>
  73. </Button>
  74. </StackPane>
  75. <Region HBox.hgrow="ALWAYS"/>
  76. <Button text="%main.vaultDetail.stats" minWidth="120" onAction="#showVaultStatistics" contentDisplay="BOTTOM" prefHeight="72">
  77. <graphic>
  78. <VBox spacing="6">
  79. <HBox alignment="CENTER_RIGHT" spacing="6">
  80. <Label styleClass="label-small,label-muted" text="%main.vaultDetail.bytesPerSecondRead"/>
  81. <ThroughputLabel styleClass="label-small,label-muted" alignment="CENTER_RIGHT" minWidth="60" idleFormat="%main.vaultDetail.throughput.idle" kibsFormat="%main.vaultDetail.throughput.kbps" mibsFormat="%main.vaultDetail.throughput.mbps" bytesPerSecond="${controller.vault.stats.bytesPerSecondRead}"/>
  82. </HBox>
  83. <HBox alignment="CENTER_RIGHT" spacing="6">
  84. <Label styleClass="label-small,label-muted" text="%main.vaultDetail.bytesPerSecondWritten"/>
  85. <ThroughputLabel styleClass="label-small,label-muted" alignment="CENTER_RIGHT" minWidth="60" idleFormat="%main.vaultDetail.throughput.idle" kibsFormat="%main.vaultDetail.throughput.kbps" mibsFormat="%main.vaultDetail.throughput.mbps" bytesPerSecond="${controller.vault.stats.bytesPerSecondWritten}"/>
  86. </HBox>
  87. </VBox>
  88. </graphic>
  89. </Button>
  90. </HBox>
  91. </VBox>
  92. <VBox visible="${controller.decryptNameViewShowing}" mouseTransparent="${!controller.decryptNameViewShowing}" styleClass="test-style" alignment="TOP_CENTER" spacing="6">
  93. <padding>
  94. <Insets topRightBottomLeft="24"/>
  95. </padding>
  96. <StackPane>
  97. <Label text="Decrypt File Name" styleClass="label-large"/>
  98. <HBox>
  99. <Region HBox.hgrow="ALWAYS"/>
  100. <Button onAction="#closeDecryptNameView" contentDisplay="GRAPHIC_ONLY">
  101. <graphic>
  102. <FontAwesome5IconView glyph="TIMES" glyphSize="16" />
  103. </graphic>
  104. </Button>
  105. </HBox>
  106. </StackPane>
  107. <VBox alignment="CENTER" VBox.vgrow="ALWAYS" styleClass="test-style2" visible="${controller.decryptedPathsListEmpty}" managed="${controller.decryptedPathsListEmpty}" onMouseClicked="#selectAndDecrypt">
  108. <Label fx:id="dropZoneText" text="Drop or click to decrypt names of files" contentDisplay="TOP">
  109. <graphic>
  110. <FontAwesome5IconView fx:id="dropZoneId" glyph="FILE_IMPORT" glyphSize="16"/>
  111. </graphic>
  112. </Label>
  113. </VBox>
  114. <ListView fx:id="decryptedNamesView" styleClass="test-list-view" VBox.vgrow="ALWAYS" visible="${!controller.decryptedPathsListEmpty}" managed="${!controller.decryptedPathsListEmpty}"/>
  115. </VBox>
  116. </StackPane>