lock_forced.fxml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  3. <?import org.cryptomator.ui.controls.FormattedLabel?>
  4. <?import javafx.geometry.Insets?>
  5. <?import javafx.scene.control.Button?>
  6. <?import javafx.scene.control.ButtonBar?>
  7. <?import javafx.scene.control.Label?>
  8. <?import javafx.scene.layout.HBox?>
  9. <?import javafx.scene.layout.StackPane?>
  10. <?import javafx.scene.layout.VBox?>
  11. <?import javafx.scene.shape.Circle?>
  12. <VBox xmlns:fx="http://javafx.com/fxml"
  13. xmlns="http://javafx.com/javafx"
  14. fx:controller="org.cryptomator.ui.lock.LockForcedController"
  15. minWidth="400"
  16. maxWidth="400"
  17. minHeight="145"
  18. spacing="12">
  19. <padding>
  20. <Insets topRightBottomLeft="12"/>
  21. </padding>
  22. <children>
  23. <HBox spacing="12" alignment="CENTER_LEFT" VBox.vgrow="ALWAYS">
  24. <StackPane alignment="CENTER" HBox.hgrow="NEVER">
  25. <Circle styleClass="glyph-icon-orange" radius="24"/>
  26. <FontAwesome5IconView styleClass="glyph-icon-white" glyph="EXCLAMATION" glyphSize="24"/>
  27. </StackPane>
  28. <VBox spacing="6">
  29. <Label styleClass="label-large" text="%lock.forced.heading"/>
  30. <FormattedLabel format="%lock.forced.message" arg1="${controller.vaultName}" wrapText="true"/>
  31. </VBox>
  32. </HBox>
  33. <VBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
  34. <ButtonBar buttonMinWidth="100" buttonOrder="+CIU">
  35. <buttons>
  36. <Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" defaultButton="true" cancelButton="true" onAction="#cancel"/>
  37. <Button text="%lock.forced.retryBtn" ButtonBar.buttonData="FINISH" onAction="#retry"/>
  38. <Button text="%lock.forced.forceBtn" ButtonBar.buttonData="OTHER" onAction="#force" disable="${!controller.forceSupported}"/>
  39. </buttons>
  40. </ButtonBar>
  41. </VBox>
  42. </children>
  43. </VBox>