Refactoring

This commit is contained in:
Martin Beyer
2020-07-21 15:16:53 +02:00
parent 158677bd54
commit 00dd67e345
4 changed files with 15 additions and 16 deletions

View File

@@ -16,7 +16,7 @@
<HBox xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="org.cryptomator.ui.stats.VaultStatisticsController"
prefWidth="1000.0" spacing="12">
prefWidth="800.0" spacing="12">
<padding>
<Insets topRightBottomLeft="12"/>
</padding>
@@ -36,7 +36,7 @@
</VBox>
<!-- Read -->
<VBox prefWidth="400" prefHeight="200">
<VBox prefWidth="300" prefHeight="300">
<HBox spacing="12" alignment="CENTER">
<Label styleClass="label-large" text="%stats.readDataLabel"/>
<ThrougputLabel styleClass="label-large" alignment="CENTER_RIGHT" minWidth="60" idleFormat="%main.vaultDetail.throughput.idle" kibsFormat="%main.vaultDetail.throughput.kbps"
@@ -71,7 +71,7 @@
</VBox>
<!-- Write -->
<VBox prefWidth="400" prefHeight="200">
<VBox prefWidth="300" prefHeight="300">
<HBox alignment="CENTER">
<Label styleClass="label-large" text="%stats.writtenDataLabel"/>
<ThrougputLabel styleClass="label-large" alignment="CENTER_RIGHT" minWidth="60" idleFormat="%main.vaultDetail.throughput.idle" kibsFormat="%main.vaultDetail.throughput.kbps"

View File

@@ -5,7 +5,6 @@
<?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"

View File

@@ -169,8 +169,8 @@ stats.totalMiBRead=Total Read:
stats.totalMiBWritten=Total Written:
stats.totalMiBEncrypted=Total Encypted:
stats.totalMiBDecrypted=Total Decrypted:
stats.totalReads=%s Files Read
stats.totalWrites=%s Files Written
stats.totalReads=%s Number of Reads
stats.totalWrites=%s Number of Writes
stats.data.bytes=%s Bytes
stats.data.kiB=%.1f KiB
stats.data.miB=%.1f MiB