123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
- <?import org.cryptomator.ui.controls.ThroughputLabel?>
- <?import javafx.geometry.Insets?>
- <?import javafx.scene.control.Button?>
- <?import javafx.scene.control.Label?>
- <?import javafx.scene.control.Tooltip?>
- <?import javafx.scene.layout.HBox?>
- <?import javafx.scene.layout.Region?>
- <?import javafx.scene.layout.StackPane?>
- <?import javafx.scene.layout.VBox?>
- <?import javafx.scene.text.Text?>
- <VBox xmlns:fx="http://javafx.com/fxml"
- xmlns="http://javafx.com/javafx"
- fx:controller="org.cryptomator.ui.mainwindow.VaultDetailUnlockedController"
- alignment="TOP_CENTER"
- spacing="9">
- <Label text="%main.vaultDetail.accessLocation"/>
- <Button styleClass="button-large" contentDisplay="GRAPHIC_ONLY" minWidth="120" onAction="#revealAccessLocation" defaultButton="${controller.accessibleViaPath}" visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
- <graphic>
- <HBox spacing="12" alignment="CENTER">
- <FontAwesome5IconView glyph="HDD" glyphSize="24"/>
- <VBox spacing="4" alignment="CENTER_LEFT">
- <Label text="%main.vaultDetail.revealBtn"/>
- <Label styleClass="label-extra-small" text="${controller.mountPoint}" textOverrun="CENTER_ELLIPSIS"/>
- </VBox>
- </HBox>
- </graphic>
- </Button>
- <Button styleClass="button-large" contentDisplay="GRAPHIC_ONLY" minWidth="120" onAction="#copyMountUri" defaultButton="${controller.accessibleViaUri}" visible="${controller.accessibleViaUri}" managed="${controller.accessibleViaUri}">
- <graphic>
- <HBox spacing="12" alignment="CENTER">
- <FontAwesome5IconView glyph="LINK" glyphSize="24"/>
- <VBox spacing="4" alignment="CENTER_LEFT">
- <Label text="%main.vaultDetail.copyUri"/>
- <Label styleClass="label-extra-small" text="${controller.mountPoint}" textOverrun="CENTER_ELLIPSIS"/>
- </VBox>
- </HBox>
- </graphic>
- </Button>
- <Button text="%main.vaultDetail.lockBtn" minWidth="120" onAction="#lock">
- <graphic>
- <FontAwesome5IconView glyph="KEY"/>
- </graphic>
- </Button>
- <Region VBox.vgrow="ALWAYS"/>
- <HBox alignment="BOTTOM_CENTER">
- <StackPane visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
- <padding>
- <Insets topRightBottomLeft="0"/>
- </padding>
- <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}">
- <graphic>
- <HBox spacing="4">
- <Text styleClass="cryptic-text" text="abc"/>
- <FontAwesome5IconView glyph="ARROW_RIGH" glyphSize="10"/>
- <Text styleClass="cryptic-text" text="101010"/>
- </HBox>
- </graphic>
- <tooltip>
- <Tooltip text="%main.vaultDetail.locateEncryptedFileBtn.tooltip"/>
- </tooltip>
- </Button>
- <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}">
- <graphic>
- <FontAwesome5IconView glyph="CHECK" glyphSize="15"/>
- </graphic>
- </Button>
- </StackPane>
- <!-- decrypt file name -->
- <StackPane visible="${controller.accessibleViaPath}" managed="${controller.accessibleViaPath}">
- <padding>
- <Insets topRightBottomLeft="0"/>
- </padding>
- <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}">
- <graphic>
- <HBox spacing="4">
- <Text styleClass="cryptic-text" text="101010"/>
- <FontAwesome5IconView glyph="LONG_ARROW_ALT_RIGHT" glyphSize="10"/>
- <Text styleClass="cryptic-text" text="abc"/>
- </HBox>
- </graphic>
- <tooltip>
- <Tooltip text="%main.vaultDetail.locateEncryptedFileBtn.tooltip"/>
- </tooltip>
- </Button>
- <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}">
- <graphic>
- <FontAwesome5IconView glyph="CHECK" glyphSize="15"/>
- </graphic>
- </Button>
- </StackPane>
- <Region HBox.hgrow="ALWAYS"/>
- <Button text="%main.vaultDetail.stats" minWidth="120" onAction="#showVaultStatistics" contentDisplay="BOTTOM">
- <graphic>
- <VBox spacing="6">
- <HBox alignment="CENTER_RIGHT" spacing="6">
- <Label styleClass="label-small,label-muted" text="%main.vaultDetail.bytesPerSecondRead"/>
- <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}"/>
- </HBox>
- <HBox alignment="CENTER_RIGHT" spacing="6">
- <Label styleClass="label-small,label-muted" text="%main.vaultDetail.bytesPerSecondWritten"/>
- <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}"/>
- </HBox>
- </VBox>
- </graphic>
- </Button>
- </HBox>
- </VBox>
|