Browse Source

cleaned up unlock window

Martin Beyer 5 năm trước cách đây
mục cha
commit
3519346df9

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

@@ -34,16 +34,5 @@
 	</Button>
 
 	<Region VBox.vgrow="ALWAYS"/>
-
-	<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>
-	<Button styleClass="button-large" text="View statistics string" minWidth="120" onAction="#showVaultStatistics"/>
+	<Button styleClass="button-large" text="%main.vaultDetail.stats" minWidth="120" onAction="#showVaultStatistics"/>
 </VBox>

+ 4 - 0
main/ui/src/main/resources/i18n/strings.properties

@@ -165,6 +165,9 @@ stats.title=Statistics for %s
 stats.readDataLabel=Read Data
 stats.writtenDataLabel=Written Data
 stats.cacheHitRate=Cache Hit Rate
+stats.totalMiB=Total: %s MiB
+stats.totalReads=Number of Reads: %s
+stats.totalWrites=Number of Writes: %s
 
 # Main Window
 main.closeBtn.tooltip=Close
@@ -197,6 +200,7 @@ main.vaultDetail.bytesPerSecondWritten=written:
 main.vaultDetail.throughput.idle=idle
 main.vaultDetail.throughput.kbps=%.1f kiB/s
 main.vaultDetail.throughput.mbps=%.1f MiB/s
+main.vaultDetail.stats=Show Statistics
 ### Missing
 main.vaultDetail.missing.info=Cryptomator could not find a vault at this path.
 ### Needs Migration