|
@@ -3,50 +3,59 @@
|
|
|
<?import javafx.geometry.Insets?>
|
|
|
<?import javafx.scene.control.Button?>
|
|
|
<?import javafx.scene.control.ButtonBar?>
|
|
|
+<?import javafx.scene.control.CheckBox?>
|
|
|
<?import javafx.scene.control.Label?>
|
|
|
+<?import javafx.scene.layout.HBox?>
|
|
|
<?import javafx.scene.layout.Region?>
|
|
|
<?import javafx.scene.layout.VBox?>
|
|
|
+<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
|
|
|
<?import org.cryptomator.ui.controls.SecPasswordField?>
|
|
|
-<?import javafx.scene.layout.HBox?>
|
|
|
-<?import javafx.scene.image.ImageView?>
|
|
|
-<?import javafx.scene.shape.Rectangle?>
|
|
|
<VBox xmlns="http://javafx.com/javafx"
|
|
|
xmlns:fx="http://javafx.com/fxml"
|
|
|
fx:controller="org.cryptomator.ui.addvaultwizard.CreateNewVaultPasswordController"
|
|
|
- prefHeight="400.0" prefWidth="600.0"
|
|
|
- alignment="CENTER">
|
|
|
+ prefWidth="600.0"
|
|
|
+ prefHeight="400.0"
|
|
|
+ spacing="12"
|
|
|
+ alignment="CENTER_LEFT">
|
|
|
<padding>
|
|
|
<Insets top="12" right="12" bottom="12" left="12"/>
|
|
|
</padding>
|
|
|
<children>
|
|
|
<Region VBox.vgrow="ALWAYS"/>
|
|
|
+
|
|
|
<Label text="%addvaultwizard.new.enterPassword" labelFor="$passwordField"/>
|
|
|
<SecPasswordField fx:id="passwordField"/>
|
|
|
- <HBox spacing="6.0" prefHeight="6.0" cacheShape="true" cache="true">
|
|
|
- <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel0" cacheShape="true" cache="true" />
|
|
|
- <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel1" cacheShape="true" cache="true" />
|
|
|
- <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel2" cacheShape="true" cache="true" />
|
|
|
- <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel3" cacheShape="true" cache="true" />
|
|
|
- <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel4" cacheShape="true" cache="true" />
|
|
|
+ <HBox spacing="6" prefHeight="6" cacheShape="true" cache="true">
|
|
|
+ <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel0" cacheShape="true" cache="true"/>
|
|
|
+ <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel1" cacheShape="true" cache="true"/>
|
|
|
+ <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel2" cacheShape="true" cache="true"/>
|
|
|
+ <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel3" cacheShape="true" cache="true"/>
|
|
|
+ <Region HBox.hgrow="ALWAYS" fx:id="passwordStrengthLevel4" cacheShape="true" cache="true"/>
|
|
|
</HBox>
|
|
|
- <Label fx:id="passwordStrengthLabel" styleClass="caption-label" labelFor="$passwordField" />
|
|
|
- <Region VBox.vgrow="ALWAYS"/>
|
|
|
+ <HBox alignment="BASELINE_RIGHT">
|
|
|
+ <Label fx:id="passwordStrengthLabel" styleClass="label-secondary" labelFor="$passwordField"/>
|
|
|
+ </HBox>
|
|
|
+
|
|
|
+ <Region VBox.vgrow="NEVER"/>
|
|
|
+
|
|
|
<Label text="%addvaultwizard.new.reenterPassword" labelFor="$reenterField"/>
|
|
|
<SecPasswordField fx:id="reenterField"/>
|
|
|
- <HBox fx:id="passwordMatchBox" spacing="12.0" alignment="BASELINE_RIGHT" >
|
|
|
- <!-- TODO
|
|
|
- <ImageView fx:id="checkmark" image="/path/to/checkmark" fitWidth="10" fitHeight="10" />
|
|
|
- <ImageView fx:id="cross" image="/path/to/cross" fitWidth="10" fitHeight="10" />
|
|
|
- -->
|
|
|
- <Rectangle fx:id="checkmark" width="10" height="10" fill="green"/>
|
|
|
- <Rectangle fx:id="cross" width="10" height="10" fill="red"/>
|
|
|
- <Label fx:id="passwordMatchLabel" labelFor="$reenterField" />
|
|
|
+ <HBox fx:id="passwordMatchBox" spacing="6" alignment="BASELINE_RIGHT">
|
|
|
+ <FontAwesome5IconView fx:id="checkmark" styleClass="glyph-icon-secondary" glyph="CHECK"/>
|
|
|
+ <FontAwesome5IconView fx:id="cross" styleClass="glyph-icon-secondary" glyph="TIMES"/>
|
|
|
+ <Label fx:id="passwordMatchLabel" styleClass="label-secondary" labelFor="$reenterField"/>
|
|
|
</HBox>
|
|
|
+
|
|
|
+ <Region VBox.vgrow="NEVER"/>
|
|
|
+
|
|
|
+ <CheckBox fx:id="finalConfirmationCheckbox" text="%addvaultwizard.new.finalConfirmation"/>
|
|
|
+
|
|
|
<Region VBox.vgrow="ALWAYS"/>
|
|
|
+
|
|
|
<ButtonBar buttonMinWidth="120" buttonOrder="B+I">
|
|
|
<buttons>
|
|
|
<Button text="%generic.button.back" ButtonBar.buttonData="BACK_PREVIOUS" onAction="#back"/>
|
|
|
- <Button fx:id="finishButton" text="%generic.button.create" ButtonBar.buttonData="FINISH" onAction="#finish" defaultButton="true" />
|
|
|
+ <Button fx:id="finishButton" text="%generic.button.create" ButtonBar.buttonData="FINISH" onAction="#finish" defaultButton="true"/>
|
|
|
</buttons>
|
|
|
</ButtonBar>
|
|
|
</children>
|