~exprez135/cryptomator-libre

ref: aef33dc8646f2f17e0d7dd30deeb3e135e26e382 cryptomator-libre/main/ui/src/main/resources/fxml/vault_detail_unlocked.fxml -rw-r--r-- 2.3 KiB
aef33dc8 — Sebastian Stenzel Merge branch 'release/1.5.4' 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?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.VBox?>
<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
<?import org.cryptomator.ui.controls.ThrougputLabel?>
<VBox xmlns="http://javafx.com/javafx"
	  xmlns:fx="http://javafx.com/fxml"
	  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.vault.unlocked}">
		<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.vault.accessPoint}" textOverrun="CENTER_ELLIPSIS"
						   visible="${controller.vault.accessPointPresent}" managed="${controller.vault.accessPointPresent}"/>
				</VBox>
			</HBox>
		</graphic>
		<tooltip>
			<Tooltip text="${controller.vault.accessPoint}"/>
		</tooltip>
	</Button>
	<Button text="%main.vaultDetail.lockBtn" minWidth="120" onAction="#lock">
		<graphic>
			<FontAwesome5IconView glyph="KEY"/>
		</graphic>
	</Button>

	<Region VBox.vgrow="ALWAYS"/>

	<HBox alignment="CENTER_RIGHT" spacing="6">
		<Label styleClass="label-small" text="%main.vaultDetail.bytesPerSecondRead"/>
		<ThrougputLabel styleClass="label-small" 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" text="%main.vaultDetail.bytesPerSecondWritten"/>
		<ThrougputLabel styleClass="label-small" 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>