ui polishing [ci skip]
@@ -46,8 +46,6 @@ import javafx.scene.Node;
|
||||
import javafx.scene.control.Hyperlink;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.ProgressIndicator;
|
||||
import javafx.scene.image.Image;
|
||||
import javafx.scene.image.ImageView;
|
||||
|
||||
@Singleton
|
||||
public class WelcomeController extends AbstractFXMLViewController {
|
||||
@@ -69,9 +67,6 @@ public class WelcomeController extends AbstractFXMLViewController {
|
||||
this.executor = executor;
|
||||
}
|
||||
|
||||
@FXML
|
||||
private ImageView botImageView;
|
||||
|
||||
@FXML
|
||||
private Node checkForUpdatesContainer;
|
||||
|
||||
@@ -86,10 +81,8 @@ public class WelcomeController extends AbstractFXMLViewController {
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
botImageView.setImage(new Image(getClass().getResource("/bot_welcome.png").toString()));
|
||||
if (areUpdatesManagedExternally()) {
|
||||
checkForUpdatesContainer.setVisible(false);
|
||||
checkForUpdatesContainer.setManaged(false);
|
||||
} else if (settings.isCheckForUpdatesEnabled()) {
|
||||
executor.execute(this::checkForUpdates);
|
||||
}
|
||||
@@ -114,9 +107,6 @@ public class WelcomeController extends AbstractFXMLViewController {
|
||||
}
|
||||
|
||||
private void checkForUpdates() {
|
||||
if (areUpdatesManagedExternally()) {
|
||||
return;
|
||||
}
|
||||
Platform.runLater(() -> {
|
||||
checkForUpdatesStatus.setText(localization.getString("welcome.checkForUpdates.label.currentlyChecking"));
|
||||
checkForUpdatesIndicator.setVisible(true);
|
||||
|
||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 16 KiB |
BIN
main/ui/src/main/resources/bot_welcome@2x.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
@@ -251,12 +251,15 @@
|
||||
-fx-background-color: transparent;
|
||||
-fx-padding: 0.4em;
|
||||
}
|
||||
.menu-item:focused {
|
||||
-fx-background-color: COLOR_VGRAD_DARK;
|
||||
.menu-item > .graphic-container {
|
||||
-fx-padding: 0 6px 0 0;
|
||||
}
|
||||
.menu-item > .label {
|
||||
-fx-text-fill: COLOR_TEXT;
|
||||
}
|
||||
.menu-item:focused {
|
||||
-fx-background-color: COLOR_VGRAD_DARK;
|
||||
}
|
||||
.menu-item:disabled > .label {
|
||||
-fx-text-fill: COLOR_TEXT_DISABLED;
|
||||
}
|
||||
|
||||
@@ -323,7 +323,10 @@
|
||||
-fx-border-width: 0.0 0.0 0.0 0.0;
|
||||
-fx-border-color:transparent;
|
||||
}
|
||||
.menu-item >.label {
|
||||
.menu-item > .graphic-container {
|
||||
-fx-padding: 1px 6px 0 0;
|
||||
}
|
||||
.menu-item > .label {
|
||||
-fx-padding: 0em 0.5em 0em 0em;
|
||||
-fx-text-fill: COLOR_TEXT;
|
||||
}
|
||||
|
||||
@@ -291,6 +291,9 @@
|
||||
-fx-border-width: 0.0 0.0 0.0 0.0;
|
||||
-fx-border-color:transparent;
|
||||
}
|
||||
.menu-item > .graphic-container {
|
||||
-fx-padding: 0 6px 0 0;
|
||||
}
|
||||
.menu-item >.label {
|
||||
-fx-padding: 0em 0.5em 0em 0em;
|
||||
-fx-text-fill: COLOR_TEXT;
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Separator?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
|
||||
<HBox fx:id="rootPane" prefHeight="440.0" prefWidth="652.0" spacing="12.0" xmlns:fx="http://javafx.com/fxml" cacheShape="true" cache="true">
|
||||
|
||||
@@ -27,14 +28,22 @@
|
||||
<fx:define>
|
||||
<ContextMenu fx:id="vaultListCellContextMenu">
|
||||
<items>
|
||||
<MenuItem text="%main.directoryList.contextMenu.remove" onAction="#didClickRemoveSelectedEntry" />
|
||||
<MenuItem text="%main.directoryList.contextMenu.changePassword" onAction="#didClickChangePassword" />
|
||||
<MenuItem text="%main.directoryList.contextMenu.remove" onAction="#didClickRemoveSelectedEntry">
|
||||
<graphic><Label text="" styleClass="ionicons"/></graphic>
|
||||
</MenuItem>
|
||||
<MenuItem text="%main.directoryList.contextMenu.changePassword" onAction="#didClickChangePassword">
|
||||
<graphic><Label text="" styleClass="ionicons"/></graphic>
|
||||
</MenuItem>
|
||||
</items>
|
||||
</ContextMenu>
|
||||
<ContextMenu fx:id="addVaultContextMenu">
|
||||
<items>
|
||||
<MenuItem text="%main.addDirectory.contextMenu.new" onAction="#didClickCreateNewVault" />
|
||||
<MenuItem text="%main.addDirectory.contextMenu.open" onAction="#didClickAddExistingVaults" />
|
||||
<MenuItem text="%main.addDirectory.contextMenu.new" onAction="#didClickCreateNewVault">
|
||||
<graphic><Label text="" styleClass="ionicons"/></graphic>
|
||||
</MenuItem>
|
||||
<MenuItem text="%main.addDirectory.contextMenu.open" onAction="#didClickAddExistingVaults">
|
||||
<graphic><Label text="" styleClass="ionicons"/></graphic>
|
||||
</MenuItem>
|
||||
</items>
|
||||
</ContextMenu>
|
||||
</fx:define>
|
||||
@@ -51,6 +60,7 @@
|
||||
</items>
|
||||
</ToolBar>
|
||||
</VBox>
|
||||
|
||||
<Pane fx:id="contentPane" prefWidth="400.0" cacheShape="true" cache="true"/>
|
||||
|
||||
</HBox>
|
||||
|
||||
@@ -8,41 +8,28 @@
|
||||
Sebastian Stenzel - initial API and implementation
|
||||
-->
|
||||
<?import java.net.URL?>
|
||||
<?import java.lang.String?>
|
||||
<?import javafx.scene.shape.Arc?>
|
||||
<?import javafx.scene.shape.QuadCurve?>
|
||||
<?import javafx.scene.shape.Path?>
|
||||
<?import javafx.scene.shape.Line?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.image.Image?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.Hyperlink?>
|
||||
<?import javafx.scene.control.CheckBox?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.control.ProgressIndicator?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
|
||||
<AnchorPane xmlns:fx="http://javafx.com/fxml" cacheShape="true" cache="true">
|
||||
<VBox prefWidth="400.0" prefHeight="400.0" spacing="24.0" alignment="CENTER" xmlns:fx="http://javafx.com/fxml" cacheShape="true" cache="true">
|
||||
|
||||
<children>
|
||||
<VBox AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="20.0" prefWidth="400.0" alignment="CENTER" spacing="10.0" cacheShape="true" cache="true">
|
||||
<Label alignment="CENTER" style="-fx-font-size: 1.5em;" text="%welcome.welcomeLabel" cacheShape="true" cache="true" />
|
||||
<VBox fx:id="checkForUpdatesContainer" prefWidth="400.0" alignment="CENTER" spacing="5.0" cacheShape="true" cache="true">
|
||||
<HBox alignment="CENTER" spacing="5.0" cacheShape="true" cache="true">
|
||||
<Label fx:id="checkForUpdatesStatus" cacheShape="true" cache="true" />
|
||||
<ProgressIndicator fx:id="checkForUpdatesIndicator" progress="-1" prefWidth="15.0" prefHeight="15.0" visible="false" cacheShape="true" cache="true" cacheHint="SPEED" />
|
||||
</HBox>
|
||||
<Hyperlink alignment="CENTER" fx:id="updateLink" onAction="#didClickUpdateLink" visible="false" cacheShape="true" cache="true" />
|
||||
</VBox>
|
||||
</VBox>
|
||||
|
||||
<ImageView fx:id="botImageView" AnchorPane.leftAnchor="100.0" AnchorPane.topAnchor="200.0" fitHeight="200.0" preserveRatio="true" smooth="false" cache="true"/>
|
||||
|
||||
<Line AnchorPane.leftAnchor="4.0" AnchorPane.topAnchor="380.0" startX="0.0" endX="6.0" startY="5.0" endY="0.0" strokeWidth="1.0" cache="true" />
|
||||
<Line AnchorPane.leftAnchor="6.0" AnchorPane.topAnchor="385.0" startX="0.0" endX="15.0" startY="0.0" endY="0.0" strokeWidth="1.0" cache="true" />
|
||||
<Line AnchorPane.leftAnchor="4.0" AnchorPane.topAnchor="385.0" startX="0.0" endX="6.0" startY="0.0" endY="5.0" strokeWidth="1.0" cache="true" />
|
||||
|
||||
<Label AnchorPane.leftAnchor="25.0" AnchorPane.topAnchor="377.0" text="%welcome.addButtonInstructionLabel" cacheShape="true" cache="true" />
|
||||
</children>
|
||||
<VBox fx:id="checkForUpdatesContainer" spacing="6.0" alignment="CENTER" cacheShape="true" cache="true">
|
||||
<HBox alignment="CENTER" spacing="5.0" cacheShape="true" cache="true">
|
||||
<Label fx:id="checkForUpdatesStatus" cacheShape="true" cache="true" />
|
||||
<ProgressIndicator fx:id="checkForUpdatesIndicator" progress="-1" prefWidth="15.0" prefHeight="15.0" cacheShape="true" cache="true" cacheHint="SPEED" />
|
||||
</HBox>
|
||||
<Hyperlink alignment="CENTER" fx:id="updateLink" onAction="#didClickUpdateLink" cacheShape="true" cache="true" />
|
||||
</VBox>
|
||||
|
||||
</AnchorPane>
|
||||
<ImageView fitHeight="200.0" preserveRatio="true" smooth="false" cache="true">
|
||||
<Image url="/bot_welcome.png"/>
|
||||
</ImageView>
|
||||
|
||||
</VBox>
|
||||
@@ -13,11 +13,9 @@ app.name=Cryptomator
|
||||
main.directoryList.contextMenu.remove=Remove from list
|
||||
main.directoryList.contextMenu.changePassword=Change password
|
||||
main.addDirectory.contextMenu.new=Create new vault
|
||||
main.addDirectory.contextMenu.open=Add existing vault
|
||||
main.addDirectory.contextMenu.open=Open existing vault
|
||||
|
||||
# welcome.fxml
|
||||
welcome.welcomeLabel=Welcome to Cryptomator
|
||||
welcome.addButtonInstructionLabel=Start by adding a new vault
|
||||
welcome.checkForUpdates.label.currentlyChecking=Checking for Updates...
|
||||
welcome.newVersionMessage=Version %s can be downloaded. This is %s.
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 370 B |
BIN
main/ui/src/main/resources/tray_icon@2x.png
Normal file
|
After Width: | Height: | Size: 783 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 363 B |
BIN
main/ui/src/main/resources/tray_icon_white@2x.png
Normal file
|
After Width: | Height: | Size: 792 B |