wrongfilealert.fxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  3. <?import javafx.geometry.Insets?>
  4. <?import javafx.scene.control.Button?>
  5. <?import javafx.scene.control.ButtonBar?>
  6. <?import javafx.scene.control.Hyperlink?>
  7. <?import javafx.scene.control.Label?>
  8. <?import javafx.scene.image.ImageView?>
  9. <?import javafx.scene.layout.HBox?>
  10. <?import javafx.scene.layout.StackPane?>
  11. <?import javafx.scene.layout.VBox?>
  12. <?import javafx.scene.shape.Circle?>
  13. <?import javafx.scene.text.Text?>
  14. <?import javafx.scene.text.TextFlow?>
  15. <?import javafx.scene.Group?>
  16. <?import javafx.scene.layout.Region?>
  17. <HBox xmlns:fx="http://javafx.com/fxml"
  18. xmlns="http://javafx.com/javafx"
  19. fx:controller="org.cryptomator.ui.wrongfilealert.WrongFileAlertController"
  20. prefWidth="600"
  21. maxWidth="-Infinity"
  22. minWidth="-Infinity"
  23. minHeight="-Infinity"
  24. spacing="12"
  25. alignment="TOP_LEFT">
  26. <padding>
  27. <Insets topRightBottomLeft="12"/>
  28. </padding>
  29. <children>
  30. <Group>
  31. <StackPane>
  32. <padding>
  33. <Insets topRightBottomLeft="6"/>
  34. </padding>
  35. <Circle styleClass="glyph-icon-primary" radius="24"/>
  36. <FontAwesome5IconView styleClass="glyph-icon-white" glyph="INFO" glyphSize="24"/>
  37. </StackPane>
  38. </Group>
  39. <VBox HBox.hgrow="ALWAYS">
  40. <Label styleClass="label-large" text="%wrongFileAlert.message" wrapText="true" textAlignment="LEFT">
  41. <padding>
  42. <Insets bottom="6" top="6"/>
  43. </padding>
  44. </Label>
  45. <Label text="%wrongFileAlert.description" wrapText="true" textAlignment="LEFT" />
  46. <ImageView fitWidth="500" preserveRatio="true" smooth="true" cache="true" image="${controller.screenshot}"/>
  47. <VBox spacing="6" alignment="CENTER_LEFT" VBox.vgrow="ALWAYS">
  48. <Label text="%wrongFileAlert.instruction.0" wrapText="true"/>
  49. <VBox alignment="CENTER_LEFT" VBox.vgrow="ALWAYS" spacing="6">
  50. <padding>
  51. <Insets left="12"/>
  52. </padding>
  53. <Label text="%wrongFileAlert.instruction.1" wrapText="true"/>
  54. <Label text="%wrongFileAlert.instruction.2" wrapText="true"/>
  55. <Label text="%wrongFileAlert.instruction.3" wrapText="true"/>
  56. </VBox>
  57. <TextFlow styleClass="text-flow">
  58. <Text text="%wrongFileAlert.link"/>
  59. <Text text=" "/>
  60. <Hyperlink styleClass="hyperlink-underline" text="docs.cryptomator.org" onAction="#openDocumentation"/>
  61. <Text text="."/>
  62. </TextFlow>
  63. </VBox>
  64. <Region VBox.vgrow="ALWAYS" minHeight="18"/>
  65. <ButtonBar buttonMinWidth="120" buttonOrder="+C">
  66. <buttons>
  67. <Button text="%generic.button.close" ButtonBar.buttonData="CANCEL_CLOSE" defaultButton="true" cancelButton="true" onAction="#close"/>
  68. </buttons>
  69. </ButtonBar>
  70. </VBox>
  71. </children>
  72. </HBox>