mirror of
https://github.com/cryptomator/cryptomator.git
synced 2024-11-23 03:59:51 +00:00
Merge pull request #3617 from cryptomator/feature/ui-cleanup
Some checks failed
Build / Compile and Test (push) Has been cancelled
Some checks failed
Build / Compile and Test (push) Has been cancelled
Enhance UI Components, Fix Issues, and Improve Visual Consistency
This commit is contained in:
commit
50cfdbbc0b
@ -20,6 +20,8 @@ public interface ErrorComponent {
|
|||||||
default Stage show() {
|
default Stage show() {
|
||||||
Stage stage = window();
|
Stage stage = window();
|
||||||
stage.setScene(scene());
|
stage.setScene(scene());
|
||||||
|
stage.setMinWidth(420);
|
||||||
|
stage.setMinHeight(300);
|
||||||
stage.show();
|
stage.show();
|
||||||
return stage;
|
return stage;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,8 @@ public interface HealthCheckComponent {
|
|||||||
default Stage showHealthCheckWindow() {
|
default Stage showHealthCheckWindow() {
|
||||||
Stage stage = window();
|
Stage stage = window();
|
||||||
stage.setScene(startScene().get());
|
stage.setScene(startScene().get());
|
||||||
|
stage.setMinWidth(420);
|
||||||
|
stage.setMinHeight(300);
|
||||||
stage.show();
|
stage.show();
|
||||||
return stage;
|
return stage;
|
||||||
}
|
}
|
||||||
|
@ -112,6 +112,10 @@ public class VaultListController implements FxController {
|
|||||||
vaultList.setItems(vaults);
|
vaultList.setItems(vaults);
|
||||||
vaultList.setCellFactory(cellFactory);
|
vaultList.setCellFactory(cellFactory);
|
||||||
|
|
||||||
|
vaultList.prefHeightProperty().bind(
|
||||||
|
vaultList.fixedCellSizeProperty().multiply(Bindings.size(vaultList.getItems()))
|
||||||
|
);
|
||||||
|
|
||||||
selectedVault.bind(vaultList.getSelectionModel().selectedItemProperty());
|
selectedVault.bind(vaultList.getSelectionModel().selectedItemProperty());
|
||||||
vaults.addListener((ListChangeListener.Change<? extends Vault> c) -> {
|
vaults.addListener((ListChangeListener.Change<? extends Vault> c) -> {
|
||||||
while (c.next()) {
|
while (c.next()) {
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
<children>
|
<children>
|
||||||
<HBox VBox.vgrow="ALWAYS">
|
<HBox VBox.vgrow="ALWAYS">
|
||||||
<VBox alignment="CENTER" minWidth="175" maxWidth="175">
|
<VBox alignment="CENTER" minWidth="175" maxWidth="175">
|
||||||
<ImageView VBox.vgrow="ALWAYS" fitHeight="128" preserveRatio="true" smooth="true" cache="true">
|
<ImageView VBox.vgrow="ALWAYS" fitHeight="128" preserveRatio="true" cache="true">
|
||||||
<Image url="@../img/logo.png"/>
|
<Image url="@../img/logo128.png"/>
|
||||||
</ImageView>
|
</ImageView>
|
||||||
</VBox>
|
</VBox>
|
||||||
<VBox HBox.hgrow="ALWAYS" alignment="CENTER">
|
<VBox HBox.hgrow="ALWAYS" alignment="CENTER">
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
</padding>
|
</padding>
|
||||||
<children>
|
<children>
|
||||||
<HBox spacing="12" VBox.vgrow="NEVER">
|
<HBox spacing="12" VBox.vgrow="NEVER">
|
||||||
<ImageView VBox.vgrow="ALWAYS" fitHeight="64" preserveRatio="true" smooth="true" cache="true">
|
<ImageView VBox.vgrow="ALWAYS" fitHeight="64" preserveRatio="true" cache="true">
|
||||||
<Image url="@../img/logo.png"/>
|
<Image url="@../img/logo64.png"/>
|
||||||
</ImageView>
|
</ImageView>
|
||||||
<VBox spacing="3" HBox.hgrow="ALWAYS" alignment="CENTER_LEFT">
|
<VBox spacing="3" HBox.hgrow="ALWAYS" alignment="CENTER_LEFT">
|
||||||
<FormattedLabel styleClass="label-extra-large" format="Cryptomator %s" arg1="${controller.fullApplicationVersion}"/>
|
<FormattedLabel styleClass="label-extra-large" format="Cryptomator %s" arg1="${controller.fullApplicationVersion}"/>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<ButtonBar buttonMinWidth="120" buttonOrder="+CI">
|
<ButtonBar buttonMinWidth="120" buttonOrder="+CI">
|
||||||
<buttons>
|
<buttons>
|
||||||
<Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" defaultButton="true" cancelButton="true" onAction="#close"/>
|
<Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" defaultButton="true" cancelButton="true" onAction="#close"/>
|
||||||
<Button text="%removeCert.confirmBtn" ButtonBar.buttonData="FINISH" onAction="#remove"/>
|
<Button text="%generic.button.remove" ButtonBar.buttonData="FINISH" onAction="#remove"/>
|
||||||
</buttons>
|
</buttons>
|
||||||
</ButtonBar>
|
</ButtonBar>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<ButtonBar buttonMinWidth="120" buttonOrder="+CI">
|
<ButtonBar buttonMinWidth="120" buttonOrder="+CI">
|
||||||
<buttons>
|
<buttons>
|
||||||
<Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" defaultButton="true" cancelButton="true" onAction="#close"/>
|
<Button text="%generic.button.cancel" ButtonBar.buttonData="CANCEL_CLOSE" defaultButton="true" cancelButton="true" onAction="#close"/>
|
||||||
<Button text="%removeVault.confirmBtn" ButtonBar.buttonData="FINISH" onAction="#finish"/>
|
<Button text="%generic.button.remove" ButtonBar.buttonData="FINISH" onAction="#finish"/>
|
||||||
</buttons>
|
</buttons>
|
||||||
</ButtonBar>
|
</ButtonBar>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
xmlns="http://javafx.com/javafx"
|
xmlns="http://javafx.com/javafx"
|
||||||
fx:controller="org.cryptomator.ui.mainwindow.VaultDetailMissingVaultController"
|
fx:controller="org.cryptomator.ui.mainwindow.VaultDetailMissingVaultController"
|
||||||
alignment="TOP_CENTER"
|
alignment="TOP_CENTER"
|
||||||
spacing="24">
|
spacing="9">
|
||||||
<children>
|
<children>
|
||||||
<VBox spacing="9" alignment="CENTER">
|
<VBox spacing="9" alignment="CENTER">
|
||||||
<StackPane alignment="CENTER">
|
<StackPane alignment="CENTER">
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
xmlns="http://javafx.com/javafx"
|
xmlns="http://javafx.com/javafx"
|
||||||
fx:controller="org.cryptomator.ui.mainwindow.WelcomeController"
|
fx:controller="org.cryptomator.ui.mainwindow.WelcomeController"
|
||||||
alignment="CENTER"
|
alignment="CENTER"
|
||||||
spacing="24">
|
spacing="9">
|
||||||
<children>
|
<children>
|
||||||
<ImageView VBox.vgrow="ALWAYS" fitHeight="128" preserveRatio="true" smooth="true" cache="true">
|
<ImageView VBox.vgrow="ALWAYS" fitHeight="128" preserveRatio="true" cache="true">
|
||||||
<Image url="@../img/logo.png"/>
|
<Image url="@../img/logo128.png"/>
|
||||||
</ImageView>
|
</ImageView>
|
||||||
|
|
||||||
<TextFlow styleClass="text-flow" prefWidth="-Infinity" visible="${controller.noVaultPresent}" managed="${controller.noVaultPresent}">
|
<TextFlow styleClass="text-flow" prefWidth="-Infinity" visible="${controller.noVaultPresent}" managed="${controller.noVaultPresent}">
|
||||||
|
@ -18,11 +18,14 @@
|
|||||||
minWidth="206">
|
minWidth="206">
|
||||||
<VBox>
|
<VBox>
|
||||||
<StackPane VBox.vgrow="ALWAYS">
|
<StackPane VBox.vgrow="ALWAYS">
|
||||||
|
<VBox>
|
||||||
<ListView fx:id="vaultList" editable="true" fixedCellSize="${controller.cellSize}">
|
<ListView fx:id="vaultList" editable="true" fixedCellSize="${controller.cellSize}">
|
||||||
<contextMenu>
|
<contextMenu>
|
||||||
<fx:include source="vault_list_contextmenu.fxml"/>
|
<fx:include source="vault_list_contextmenu.fxml"/>
|
||||||
</contextMenu>
|
</contextMenu>
|
||||||
</ListView>
|
</ListView>
|
||||||
|
<Region VBox.vgrow="ALWAYS" styleClass="list-view"/>
|
||||||
|
</VBox>
|
||||||
<VBox visible="${controller.emptyVaultList}" spacing="6" alignment="CENTER">
|
<VBox visible="${controller.emptyVaultList}" spacing="6" alignment="CENTER">
|
||||||
<Region VBox.vgrow="ALWAYS"/>
|
<Region VBox.vgrow="ALWAYS"/>
|
||||||
<Label VBox.vgrow="NEVER" text="%main.vaultlist.emptyList.onboardingInstruction" textAlignment="CENTER" wrapText="true"/>
|
<Label VBox.vgrow="NEVER" text="%main.vaultlist.emptyList.onboardingInstruction" textAlignment="CENTER" wrapText="true"/>
|
||||||
|
@ -14,6 +14,7 @@ generic.button.copied=Copied!
|
|||||||
generic.button.done=Done
|
generic.button.done=Done
|
||||||
generic.button.next=Next
|
generic.button.next=Next
|
||||||
generic.button.print=Print
|
generic.button.print=Print
|
||||||
|
generic.button.remove=Remove
|
||||||
|
|
||||||
# Error
|
# Error
|
||||||
error.message=An error occurred
|
error.message=An error occurred
|
||||||
@ -106,7 +107,6 @@ addvaultwizard.success.unlockNow=Unlock Now
|
|||||||
removeVault.title=Remove "%s"
|
removeVault.title=Remove "%s"
|
||||||
removeVault.message=Remove vault?
|
removeVault.message=Remove vault?
|
||||||
removeVault.description=This will only make Cryptomator forget about this vault. You can add it again. No encrypted files will be deleted from your hard drive.
|
removeVault.description=This will only make Cryptomator forget about this vault. You can add it again. No encrypted files will be deleted from your hard drive.
|
||||||
removeVault.confirmBtn=Remove Vault
|
|
||||||
|
|
||||||
# Change Password
|
# Change Password
|
||||||
changepassword.title=Change Password
|
changepassword.title=Change Password
|
||||||
@ -344,7 +344,6 @@ preferences.contribute.sponsor=Sponsor
|
|||||||
removeCert.title=Remove Certificate
|
removeCert.title=Remove Certificate
|
||||||
removeCert.message=Remove supporter certificate?
|
removeCert.message=Remove supporter certificate?
|
||||||
removeCert.description=Cryptomator's core features are not affected by this. Neither access to your vaults is restricted nor the level of security is lowered.
|
removeCert.description=Cryptomator's core features are not affected by this. Neither access to your vaults is restricted nor the level of security is lowered.
|
||||||
removeCert.confirmBtn=Remove
|
|
||||||
#<-- Add entries for donations and code/translation/documentation contribution -->
|
#<-- Add entries for donations and code/translation/documentation contribution -->
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 8.3 KiB |
BIN
src/main/resources/img/logo128.png
Normal file
BIN
src/main/resources/img/logo128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
src/main/resources/img/logo128@2x.png
Normal file
BIN
src/main/resources/img/logo128@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
src/main/resources/img/logo64.png
Normal file
BIN
src/main/resources/img/logo64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
src/main/resources/img/logo64@2x.png
Normal file
BIN
src/main/resources/img/logo64@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
Loading…
Reference in New Issue
Block a user