mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-07-26 18:13:29 +00:00
34 lines
1.7 KiB
XML
34 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
|
|
<?import org.cryptomator.ui.controls.NiceSecurePasswordField?>
|
|
<?import org.cryptomator.ui.controls.PasswordStrengthIndicator?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.layout.Region?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
<VBox xmlns:fx="http://javafx.com/fxml"
|
|
xmlns="http://javafx.com/javafx"
|
|
fx:controller="org.cryptomator.ui.common.NewPasswordController"
|
|
spacing="6"
|
|
alignment="CENTER_LEFT">
|
|
<fx:define>
|
|
<FontAwesome5IconView fx:id="passwordStrengthCheckmark" styleClass="glyph-icon-primary" glyph="CHECK"/>
|
|
<FontAwesome5IconView fx:id="passwordStrengthWarning" styleClass="glyph-icon-orange" glyph="EXCLAMATION_TRIANGLE"/>
|
|
<FontAwesome5IconView fx:id="passwordStrengthCross" styleClass="glyph-icon-red" glyph="TIMES"/>
|
|
<FontAwesome5IconView fx:id="passwordMatchCheckmark" styleClass="glyph-icon-primary" glyph="CHECK"/>
|
|
<FontAwesome5IconView fx:id="passwordMatchCross" styleClass="glyph-icon-red" glyph="TIMES"/>
|
|
</fx:define>
|
|
<children>
|
|
<Label text="%newPassword.promptText" labelFor="$passwordField"/>
|
|
<NiceSecurePasswordField fx:id="passwordField"/>
|
|
<PasswordStrengthIndicator spacing="6" prefHeight="6" strength="${controller.passwordStrength}"/>
|
|
<Label fx:id="passwordStrengthLabel" styleClass="label-muted" alignment="CENTER_RIGHT" maxWidth="Infinity" graphicTextGap="6"/>
|
|
|
|
<Region/>
|
|
|
|
<Label text="%newPassword.reenterPassword" labelFor="$reenterField"/>
|
|
<NiceSecurePasswordField fx:id="reenterField"/>
|
|
<Label fx:id="passwordMatchLabel" styleClass="label-muted" alignment="CENTER_RIGHT" maxWidth="Infinity" graphicTextGap="6"/>
|
|
</children>
|
|
</VBox>
|