|
@@ -3,35 +3,67 @@
|
|
|
<?import javafx.geometry.Insets?>
|
|
|
<?import javafx.scene.control.Button?>
|
|
|
<?import javafx.scene.control.ButtonBar?>
|
|
|
+<?import javafx.scene.control.Hyperlink?>
|
|
|
<?import javafx.scene.control.Label?>
|
|
|
+<?import javafx.scene.image.Image?>
|
|
|
+<?import javafx.scene.image.ImageView?>
|
|
|
<?import javafx.scene.layout.HBox?>
|
|
|
<?import javafx.scene.layout.StackPane?>
|
|
|
<?import javafx.scene.layout.VBox?>
|
|
|
<?import javafx.scene.shape.Circle?>
|
|
|
+<?import javafx.scene.text.Text?>
|
|
|
+<?import javafx.scene.text.TextFlow?>
|
|
|
<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
|
|
|
<VBox xmlns="http://javafx.com/javafx"
|
|
|
xmlns:fx="http://javafx.com/fxml"
|
|
|
fx:controller="org.cryptomator.ui.wrongfilealert.WrongFileAlertController"
|
|
|
- minWidth="400"
|
|
|
- maxWidth="400"
|
|
|
- minHeight="145"
|
|
|
- spacing="12">
|
|
|
+ minWidth="450"
|
|
|
+ maxWidth="450"
|
|
|
+ minHeight="-Infinity"
|
|
|
+ spacing="24"
|
|
|
+ alignment="CENTER">
|
|
|
<padding>
|
|
|
- <Insets topRightBottomLeft="12"/>
|
|
|
+ <Insets topRightBottomLeft="24"/>
|
|
|
</padding>
|
|
|
<children>
|
|
|
<HBox spacing="12" alignment="CENTER_LEFT" VBox.vgrow="ALWAYS">
|
|
|
<StackPane alignment="CENTER" HBox.hgrow="NEVER">
|
|
|
<Circle styleClass="glyph-icon-primary" radius="24"/>
|
|
|
- <FontAwesome5IconView styleClass="glyph-icon-white" glyph="QUESTION" glyphSize="24"/>
|
|
|
+ <FontAwesome5IconView styleClass="glyph-icon-white" glyph="INFO" glyphSize="24"/>
|
|
|
</StackPane>
|
|
|
- <Label text="%wrongFileAlert.information" wrapText="true" textAlignment="LEFT" HBox.hgrow="ALWAYS"/>
|
|
|
+ <VBox spacing="6" alignment="CENTER_LEFT" VBox.vgrow="ALWAYS">
|
|
|
+ <Label text="%wrongFileAlert.header.title" wrapText="true" textAlignment="LEFT" HBox.hgrow="ALWAYS"/>
|
|
|
+ <Label text="%wrongFileAlert.header.lead" wrapText="true" textAlignment="LEFT" HBox.hgrow="ALWAYS"/>
|
|
|
+ </VBox>
|
|
|
</HBox>
|
|
|
|
|
|
+ <ImageView VBox.vgrow="ALWAYS" fitHeight="200" preserveRatio="true" smooth="true" cache="true">
|
|
|
+ <Image url="/choose_existing_vault.png"/> <!-- TODO replace mockup -->
|
|
|
+ </ImageView>
|
|
|
+
|
|
|
+ <VBox alignment="CENTER_LEFT" VBox.vgrow="ALWAYS">
|
|
|
+ <Label text="%wrongFileAlert.instruction.0" wrapText="true" textAlignment="LEFT" HBox.hgrow="ALWAYS"/>
|
|
|
+ <VBox alignment="CENTER_LEFT" VBox.vgrow="ALWAYS" spacing="6">
|
|
|
+ <padding>
|
|
|
+ <Insets left="12" top="6"/>
|
|
|
+ </padding>
|
|
|
+ <Label text="%wrongFileAlert.instruction.1" wrapText="true" textAlignment="LEFT" HBox.hgrow="ALWAYS"/>
|
|
|
+ <Label text="%wrongFileAlert.instruction.2" wrapText="true" textAlignment="LEFT" HBox.hgrow="ALWAYS"/>
|
|
|
+ <Label text="%wrongFileAlert.instruction.3" wrapText="true" textAlignment="LEFT" HBox.hgrow="ALWAYS"/>
|
|
|
+ </VBox>
|
|
|
+ </VBox>
|
|
|
+
|
|
|
+ <TextFlow>
|
|
|
+ <Text text="%wrongFileAlert.link"/>
|
|
|
+ <Text text=" "/>
|
|
|
+ <Hyperlink styleClass="hyperlink-underline" text="docs.cryptomator.org" onAction="#openDocumentation"/>
|
|
|
+ <Text text="."/>
|
|
|
+ </TextFlow>
|
|
|
+
|
|
|
<VBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
|
|
|
<ButtonBar buttonMinWidth="120" buttonOrder="+CI">
|
|
|
<buttons>
|
|
|
- <Button text="%wrongFileAlert.btn" ButtonBar.buttonData="FINISH" defaultButton="true" cancelButton="true" onAction="#close"/>
|
|
|
+ <Button text="%generic.button.close" ButtonBar.buttonData="CANCEL_CLOSE" defaultButton="true" cancelButton="true" onAction="#close"/>
|
|
|
</buttons>
|
|
|
</ButtonBar>
|
|
|
</VBox>
|