vault_detail_unlocked.fxml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <VBox xmlns:fx="http://javafx.com/fxml"
  13. xmlns="http://javafx.com/javafx"
  14. fx:controller="org.cryptomator.ui.mainwindow.VaultDetailUnlockedController"
  15. alignment="TOP_CENTER"
  16. spacing="9">
  17. <Label text="%main.vaultDetail.accessLocation"/>
  18. <Button styleClass="button-large" contentDisplay="GRAPHIC_ONLY" minWidth="120" onAction="#revealAccessLocation" defaultButton="${controller.accessibleViaPath}" visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
  19. <graphic>
  20. <HBox spacing="12" alignment="CENTER">
  21. <FontAwesome5IconView glyph="HDD" glyphSize="24"/>
  22. <VBox spacing="4" alignment="CENTER_LEFT">
  23. <Label text="%main.vaultDetail.revealBtn"/>
  24. <Label styleClass="label-extra-small" text="${controller.mountPoint}" textOverrun="CENTER_ELLIPSIS"/>
  25. </VBox>
  26. </HBox>
  27. </graphic>
  28. </Button>
  29. <Button styleClass="button-large" contentDisplay="GRAPHIC_ONLY" minWidth="120" onAction="#copyMountUri" defaultButton="${controller.accessibleViaUri}" visible="${controller.accessibleViaUri}" managed="${controller.accessibleViaUri}">
  30. <graphic>
  31. <HBox spacing="12" alignment="CENTER">
  32. <FontAwesome5IconView glyph="LINK" glyphSize="24"/>
  33. <VBox spacing="4" alignment="CENTER_LEFT">
  34. <Label text="%main.vaultDetail.copyUri"/>
  35. <Label styleClass="label-extra-small" text="${controller.mountPoint}" textOverrun="CENTER_ELLIPSIS"/>
  36. </VBox>
  37. </HBox>
  38. </graphic>
  39. </Button>
  40. <Button text="%main.vaultDetail.lockBtn" minWidth="120" onAction="#lock">
  41. <graphic>
  42. <FontAwesome5IconView glyph="KEY"/>
  43. </graphic>
  44. </Button>
  45. <Region VBox.vgrow="ALWAYS"/>
  46. <HBox alignment="BOTTOM_CENTER">
  47. <StackPane visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
  48. <padding>
  49. <Insets topRightBottomLeft="0"/>
  50. </padding>
  51. <Button fx:id="dropZone" styleClass="drag-n-drop" text="%main.vaultDetail.locateEncryptedFileBtn" minWidth="120" maxWidth="180" wrapText="true" textAlignment="CENTER" onAction="#chooseFileAndReveal" contentDisplay="TOP" visible="${!controller.ciphertextPathsCopied}" managed="${!controller.ciphertextPathsCopied}">
  52. <graphic>
  53. <HBox spacing="4">
  54. <Text styleClass="cryptic-text" text="abc"/>
  55. <FontAwesome5IconView glyph="ARROW_RIGH" glyphSize="10"/>
  56. <Text styleClass="cryptic-text" text="101010"/>
  57. </HBox>
  58. </graphic>
  59. <tooltip>
  60. <Tooltip text="%main.vaultDetail.locateEncryptedFileBtn.tooltip"/>
  61. </tooltip>
  62. </Button>
  63. <Button styleClass="drag-n-drop" text="%main.vaultDetail.encryptedPathsCopied" minWidth="120" maxWidth="180" wrapText="true" textAlignment="CENTER" onAction="#chooseFileAndReveal" contentDisplay="TOP" visible="${controller.ciphertextPathsCopied}" managed="${controller.ciphertextPathsCopied}">
  64. <graphic>
  65. <FontAwesome5IconView glyph="CHECK" glyphSize="15"/>
  66. </graphic>
  67. </Button>
  68. </StackPane>
  69. <!-- decrypt file name -->
  70. <StackPane visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
  71. <padding>
  72. <Insets topRightBottomLeft="0"/>
  73. </padding>
  74. <Button fx:id="dropZone2" styleClass="drag-n-drop" text="Decrypt file name" minWidth="120" maxWidth="180" wrapText="true" textAlignment="CENTER" onAction="#chooseEncryptedFileAndGetName" contentDisplay="TOP" visible="${!controller.ciphertextPathsCopied}" managed="${!controller.ciphertextPathsCopied}">
  75. <graphic>
  76. <HBox spacing="4">
  77. <Text styleClass="cryptic-text" text="101010"/>
  78. <FontAwesome5IconView glyph="LONG_ARROW_ALT_RIGHT" glyphSize="10"/>
  79. <Text styleClass="cryptic-text" text="abc"/>
  80. </HBox>
  81. </graphic>
  82. <tooltip>
  83. <Tooltip text="%main.vaultDetail.locateEncryptedFileBtn.tooltip"/>
  84. </tooltip>
  85. </Button>
  86. <Button styleClass="drag-n-drop" text="%main.vaultDetail.encryptedPathsCopied" minWidth="120" maxWidth="180" wrapText="true" textAlignment="CENTER" onAction="#chooseEncryptedFileAndGetName" contentDisplay="TOP" visible="${controller.ciphertextPathsCopied}" managed="${controller.ciphertextPathsCopied}">
  87. <graphic>
  88. <FontAwesome5IconView glyph="CHECK" glyphSize="15"/>
  89. </graphic>
  90. </Button>
  91. </StackPane>
  92. <Region HBox.hgrow="ALWAYS"/>
  93. <Button text="%main.vaultDetail.stats" minWidth="120" onAction="#showVaultStatistics" contentDisplay="BOTTOM">
  94. <graphic>
  95. <VBox spacing="6">
  96. <HBox alignment="CENTER_RIGHT" spacing="6">
  97. <Label styleClass="label-small,label-muted" text="%main.vaultDetail.bytesPerSecondRead"/>
  98. <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}"/>
  99. </HBox>
  100. <HBox alignment="CENTER_RIGHT" spacing="6">
  101. <Label styleClass="label-small,label-muted" text="%main.vaultDetail.bytesPerSecondWritten"/>
  102. <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}"/>
  103. </HBox>
  104. </VBox>
  105. </graphic>
  106. </Button>
  107. </HBox>
  108. </VBox>