#926 Adding information to the main window

This commit is contained in:
Armin Schrenk
2019-08-16 15:51:39 +02:00
parent 6b47cf54e2
commit e32ddd07ea
2 changed files with 26 additions and 4 deletions

View File

@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.text.TextFlow?>
<VBox xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="org.cryptomator.ui.mainwindow.VaultDetailController"
@@ -12,10 +13,23 @@
<Insets bottom="6.0" left="6.0" right="6.0" top="6.0"/>
</padding>
<children>
<Label text="${controller.vault.displayableName}"/>
<!--TODO: add caption style class -->
<Text text="${controller.vault.displayableName}" />
<TextFlow><!--TODO: add visibility of the textflows -->
<Text text="%vaultDetail.info.storageLocation" />
<Text text="${controller.vault.displayablePath}"/>
</TextFlow>
<TextFlow>
<Text text="%vaultDetail.info.accessLocation" />
<Text text="${controller.vault.customMountPath}"/>
</TextFlow>
<TextFlow>
<Text text="%vaultDetail.info.currentState" />
<Text text="${controller.vault.locked}"/>
</TextFlow>
<Button text="TODO unlock" onAction="#unlock" visible="${controller.vault.locked}"/>
<Button text="TODO lock" onAction="#lock" visible="${controller.vault.unlocked}"/>
<Button text="TODO unlock" onAction="#unlock" visible="${controller.vault.locked}" defaultButton="${controller.vault.locked}"/>
<Button text="TODO lock" onAction="#lock" visible="${controller.vault.unlocked}" defaultButton="${controller.vault.unlocked}"/>
<Button text="TODO options" onAction="#showVaultOptions" visible="${controller.vault.locked}"/>
<Button text="TODO change password" onAction="#changePassword" visible="${controller.vault.locked}"/>
</children>

View File

@@ -60,9 +60,17 @@ preferences.updates.checkNowBtn=Check Now
##Volume
preferences.volume=Virtual Drive
# Main window
main.closeBtn.tooltip=Close
main.settingsBtn.tooltip=Settings
vaultlist.emptyList.onboardingInstruction=Click here to add a vault
## Vault detail
vaultDetail.info.storageLocation=Stored at
vaultDetail.info.accessLocation=Accesssible at
vaultDetail.info.currentState=Currently
# Misc/Not Classfied
vaultOptions.mount.readonly=Read-Only
vaultOptions.mount.driveName=Drive Name
vaultOptions.mount.customMountFlags=Custom Mount Flags