mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-20 06:06:02 +00:00
71 lines
3.2 KiB
XML
71 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
|
|
<?import org.cryptomator.ui.controls.FontAwesome5Spinner?>
|
|
<?import org.cryptomator.ui.controls.FormattedLabel?>
|
|
<?import org.cryptomator.ui.controls.FormattedString?>
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.Button?>
|
|
<?import javafx.scene.control.CheckBox?>
|
|
<?import javafx.scene.control.Hyperlink?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.control.ProgressBar?>
|
|
<?import javafx.scene.control.Tooltip?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
<?import javafx.scene.text.Text?>
|
|
<?import javafx.scene.text.TextFlow?>
|
|
<VBox xmlns:fx="http://javafx.com/fxml"
|
|
xmlns="http://javafx.com/javafx"
|
|
fx:controller="org.cryptomator.ui.preferences.UpdatesPreferencesController"
|
|
spacing="12">
|
|
<fx:define>
|
|
<FormattedString fx:id="linkLabel" format="%preferences.updates.updateAvailable" arg1="${controller.latestVersion}"/>
|
|
</fx:define>
|
|
<padding>
|
|
<Insets topRightBottomLeft="24"/>
|
|
</padding>
|
|
<FormattedLabel format="%preferences.updates.currentVersion" arg1="${controller.currentVersion}" textAlignment="CENTER" wrapText="true"/>
|
|
|
|
<CheckBox fx:id="checkForUpdatesCheckbox" text="%preferences.updates.autoUpdateCheck"/>
|
|
|
|
<VBox alignment="CENTER" spacing="12">
|
|
<Button text="%preferences.updates.checkNowBtn" defaultButton="true" onAction="#checkNow" contentDisplay="${controller.checkForUpdatesButtonState}">
|
|
<graphic>
|
|
<FontAwesome5Spinner glyphSize="12"/>
|
|
</graphic>
|
|
</Button>
|
|
|
|
<TextFlow styleClass="text-flow" textAlignment="CENTER" visible="${controller.checkFailed}" managed="${controller.checkFailed}">
|
|
<FontAwesome5IconView glyphSize="12" styleClass="glyph-icon-orange" glyph="EXCLAMATION_TRIANGLE"/>
|
|
<Text text=" "/>
|
|
<Text text="%preferences.updates.checkFailed"/>
|
|
<Text text=" "/>
|
|
<Hyperlink styleClass="hyperlink-underline" text="%preferences.general.debugDirectory" onAction="#showLogfileDirectory"/>
|
|
</TextFlow>
|
|
<FormattedLabel format="%preferences.updates.lastUpdateCheck" arg1="${controller.timeDifferenceMessage}" textAlignment="CENTER" wrapText="true">
|
|
<tooltip>
|
|
<Tooltip text="${controller.lastUpdateCheckMessage}" showDelay="10ms"/>
|
|
</tooltip>
|
|
</FormattedLabel>
|
|
<Label text="%preferences.updates.upToDate" visible="${controller.upToDateLabelVisible}" managed="${controller.upToDateLabelVisible}">
|
|
<graphic>
|
|
<FontAwesome5IconView glyphSize="12" styleClass="glyph-icon-primary" glyph="CHECK"/>
|
|
</graphic>
|
|
</Label>
|
|
<Hyperlink text="${linkLabel.value}" onAction="#visitDownloadsPage" textAlignment="CENTER" wrapText="true" styleClass="hyperlink-underline" visible="${controller.updateAvailable}" managed="${controller.updateAvailable}"/>
|
|
<Button onAction="#doUpdate" disable="${!controller.updateReady}"> <!-- TODO: visible="${controller.updateAvailable}" -->
|
|
<graphic>
|
|
<VBox spacing="5" alignment="CENTER">
|
|
<Label text="${controller.updateButtonTitle}"/>
|
|
<ProgressBar maxWidth="200"
|
|
maxHeight="12"
|
|
visible="${controller.updateService.running}"
|
|
managed="${controller.updateService.running}"
|
|
progress="${controller.updateService.progress}"/>
|
|
</VBox>
|
|
</graphic>
|
|
</Button>
|
|
|
|
</VBox>
|
|
</VBox>
|