123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?import org.cryptomator.ui.controls.FontAwesome5Spinner?>
- <?import org.cryptomator.ui.keyloading.hub.ReceiveKeyState?>
- <?import javafx.geometry.Insets?>
- <?import javafx.scene.control.Button?>
- <?import javafx.scene.control.ButtonBar?>
- <?import javafx.scene.control.Label?>
- <?import javafx.scene.control.TextField?>
- <?import javafx.scene.image.Image?>
- <?import javafx.scene.image.ImageView?>
- <?import javafx.scene.layout.HBox?>
- <?import javafx.scene.layout.VBox?>
- <VBox xmlns:fx="http://javafx.com/fxml"
- xmlns="http://javafx.com/javafx"
- fx:controller="org.cryptomator.ui.keyloading.hub.ReceiveKeyController"
- minWidth="400"
- maxWidth="400"
- minHeight="145"
- spacing="12">
- <fx:define>
- <ReceiveKeyState fx:id="loading" fx:constant="LOADING" />
- <ReceiveKeyState fx:id="needsRegistration" fx:constant="NEEDS_REGISTRATION"/>
- </fx:define>
- <padding>
- <Insets topRightBottomLeft="12"/>
- </padding>
- <children>
- <HBox spacing="12" VBox.vgrow="ALWAYS">
- <ImageView VBox.vgrow="ALWAYS" fitWidth="64" preserveRatio="true" cache="true">
- <Image url="@../img/bot/bot.png"/>
- </ImageView>
- <FontAwesome5Spinner glyphSize="12" visible="${controller.state == loading}" managed="${controller.state == loading}"/>
- <VBox spacing="6" visible="${controller.state == needsRegistration}" managed="${controller.state == needsRegistration}">
- <Label text="TODO: register device" labelFor="$locationTextField"/>
- <TextField fx:id="deviceName" promptText="TODO: device name" VBox.vgrow="ALWAYS"/>
- </VBox>
- </HBox>
- <VBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
- <ButtonBar buttonMinWidth="120" buttonOrder="+CX">
- <buttons>
- <Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" cancelButton="true" onAction="#cancel"/>
- <Button text="TODO: register device" ButtonBar.buttonData="NEXT_FORWARD" visible="${controller.state == needsRegistration}" managed="${controller.state == needsRegistration}" defaultButton="true" onAction="#register"/>
- </buttons>
- </ButtonBar>
- </VBox>
- </children>
- </VBox>
|