hub_register_device.fxml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.geometry.Insets?>
  3. <?import javafx.scene.control.Button?>
  4. <?import javafx.scene.control.ButtonBar?>
  5. <?import javafx.scene.image.Image?>
  6. <?import javafx.scene.image.ImageView?>
  7. <?import javafx.scene.layout.HBox?>
  8. <?import javafx.scene.layout.VBox?>
  9. <?import javafx.scene.control.Hyperlink?>
  10. <?import javafx.scene.text.TextFlow?>
  11. <?import javafx.scene.text.Text?>
  12. <VBox xmlns:fx="http://javafx.com/fxml"
  13. xmlns="http://javafx.com/javafx"
  14. fx:controller="org.cryptomator.ui.keyloading.hub.RegisterDeviceController"
  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" VBox.vgrow="ALWAYS">
  24. <ImageView VBox.vgrow="ALWAYS" fitWidth="64" preserveRatio="true" cache="true">
  25. <Image url="@../img/bot/bot.png"/>
  26. </ImageView>
  27. <VBox spacing="12">
  28. <TextFlow styleClass="text-flow">
  29. <Text text="TODO: Please click on "/>
  30. <Hyperlink styleClass="hyperlink-underline" text="TODO: Register Device" onAction="#browse"/>
  31. <Text text=" and enter this device verification code: "/>
  32. <Text text="${controller.verificationCode}"/>
  33. </TextFlow>
  34. </VBox>
  35. </HBox>
  36. <VBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
  37. <ButtonBar buttonMinWidth="120" buttonOrder="+I">
  38. <buttons>
  39. <Button text="%generic.button.close" ButtonBar.buttonData="FINISH" defaultButton="true" onAction="#close"/>
  40. </buttons>
  41. </ButtonBar>
  42. </VBox>
  43. </children>
  44. </VBox>