mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-07-28 19:12:38 +00:00
42 lines
1.9 KiB
XML
42 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
|
|
<?import org.cryptomator.ui.controls.FormattedLabel?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.control.TextArea?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
<VBox xmlns:fx="http://javafx.com/fxml"
|
|
xmlns="http://javafx.com/javafx"
|
|
fx:controller="org.cryptomator.ui.recoverykey.RecoveryKeyValidateController"
|
|
maxWidth="400"
|
|
minHeight="145"
|
|
spacing="12">
|
|
<children>
|
|
<FormattedLabel format="%recoveryKey.recover.prompt" arg1="${controller.vault.displayName}" wrapText="true" labelFor="$textarea"/>
|
|
|
|
<TextArea wrapText="true" prefRowCount="4" fx:id="textarea" textFormatter="${controller.recoveryKeyTextFormatter}" onKeyPressed="#onKeyPressed"/>
|
|
<VBox>
|
|
<Label text="Just some Filler" visible="false" managed="${textarea.text.empty}" graphicTextGap="6">
|
|
<graphic>
|
|
<FontAwesome5IconView glyph="ANCHOR"/>
|
|
</graphic>
|
|
</Label>
|
|
<Label text="%recoveryKey.recover.correctKey" graphicTextGap="6" visible="${(!textarea.text.empty) && controller.recoveryKeyCorrect}" managed="${(!textarea.text.empty) && controller.recoveryKeyCorrect}">
|
|
<graphic>
|
|
<FontAwesome5IconView glyph="CHECK"/>
|
|
</graphic>
|
|
</Label>
|
|
<Label text="%recoveryKey.recover.wrongKey" graphicTextGap="6" visible="${(!textarea.text.empty) && controller.recoveryKeyWrong}" managed="${(!textarea.text.empty) && controller.recoveryKeyWrong}">
|
|
<graphic>
|
|
<FontAwesome5IconView glyph="TIMES" styleClass="glyph-icon-red"/>
|
|
</graphic>
|
|
</Label>
|
|
<Label text="%recoveryKey.recover.invalidKey" graphicTextGap="6" visible="${(!textarea.text.empty) && controller.recoveryKeyInvalid}" managed="${(!textarea.text.empty) && controller.recoveryKeyInvalid}">
|
|
<graphic>
|
|
<FontAwesome5IconView glyph="TIMES" styleClass="glyph-icon-red"/>
|
|
</graphic>
|
|
</Label>
|
|
</VBox>
|
|
</children>
|
|
</VBox>
|