Sebastian Stenzel 4 năm trước cách đây
mục cha
commit
73587437cb

+ 17 - 1
main/ui/src/main/resources/fxml/vault_detail_unlocked.fxml

@@ -34,5 +34,21 @@
 	</Button>
 
 	<Region VBox.vgrow="ALWAYS"/>
-	<Button styleClass="button-large" text="%main.vaultDetail.stats" minWidth="120" onAction="#showVaultStatistics"/>
+
+	<HBox alignment="BOTTOM_RIGHT">
+		<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"/>
+						<ThrougputLabel 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"/>
+						<ThrougputLabel 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>

+ 3 - 3
main/ui/src/main/resources/i18n/strings.properties

@@ -227,12 +227,12 @@ main.vaultDetail.unlockedStatus=UNLOCKED
 main.vaultDetail.accessLocation=Your vault's contents are accessible here:
 main.vaultDetail.revealBtn=Reveal Drive
 main.vaultDetail.lockBtn=Lock
-main.vaultDetail.bytesPerSecondRead=read:
-main.vaultDetail.bytesPerSecondWritten=written:
+main.vaultDetail.bytesPerSecondRead=Read:
+main.vaultDetail.bytesPerSecondWritten=Write:
 main.vaultDetail.throughput.idle=idle
 main.vaultDetail.throughput.kbps=%.1f kiB/s
 main.vaultDetail.throughput.mbps=%.1f MiB/s
-main.vaultDetail.stats=Show Statistics
+main.vaultDetail.stats=Vault Statistics
 ### Missing
 main.vaultDetail.missing.info=Cryptomator could not find a vault at this path.
 main.vaultDetail.missing.recheck=Recheck