diff --git a/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockModule.java b/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockModule.java index 3521fe054..9ababa915 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockModule.java +++ b/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockModule.java @@ -30,10 +30,10 @@ abstract class UnlockModule { @Provides @UnlockWindow @UnlockScoped - static Stage provideStage() { + static Stage provideStage(ResourceBundle resourceBundle) { Stage stage = new Stage(); - stage.setMinWidth(300); - stage.setMinHeight(200); + stage.setTitle(resourceBundle.getString("unlock.title")); + stage.setResizable(false); stage.initModality(Modality.APPLICATION_MODAL); return stage; } diff --git a/main/ui/src/main/resources/css/dark_theme.css b/main/ui/src/main/resources/css/dark_theme.css index bda984e14..1de8ad7a1 100644 --- a/main/ui/src/main/resources/css/dark_theme.css +++ b/main/ui/src/main/resources/css/dark_theme.css @@ -71,6 +71,7 @@ -fx-pref-height: 30px; -fx-pref-width: 30px; -fx-background-color: none; + -fx-padding: 0; } .main-window .title .button .fa-icon { @@ -108,7 +109,8 @@ -fx-background-color: PRIMARY_BG, INDICATOR_BG; -fx-background-insets: 0, 1px; -fx-background-radius: 5px, 4px; - -fx-translate-x: 4px; + -fx-translate-x: -1px; + -fx-translate-y: 1px; } /******************************************************************************* @@ -141,7 +143,7 @@ -fx-background-color: CONTROL_BORDER_NORMAL, MAIN_BG; -fx-background-insets: 0 0 1px 0, 1px; -fx-background-radius: 4px 4px 0 0; - -fx-padding: 0.2em 0.4em 0.2em 0.4em; + -fx-padding: 0.2em 1em 0.2em 1em; } .tab-pane > .tab-header-area > .headers-region > .tab:selected { @@ -219,12 +221,13 @@ .toolbar-container .button { -fx-pref-height: 30px; - -fx-pref-width: 30px; + -fx-pref-width: 31px; -fx-background-color: transparent; -fx-background-insets: 0; -fx-background-radius: 0; -fx-border-color: transparent CONTROL_BORDER_NORMAL transparent transparent; - -fx-border-width: 1; + -fx-border-width: 0 1px 0 0; + -fx-padding: 0; } .toolbar-container .button:focused { @@ -318,7 +321,7 @@ -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL; -fx-background-insets: 0, 1px; -fx-background-radius: 4px; - -fx-padding: 0.2em 0.4em 0.2em 0.4em; + -fx-padding: 0.2em 1em 0.2em 1em; } .button:focused { diff --git a/main/ui/src/main/resources/css/light_theme.css b/main/ui/src/main/resources/css/light_theme.css index 973a87563..8211bc0d8 100644 --- a/main/ui/src/main/resources/css/light_theme.css +++ b/main/ui/src/main/resources/css/light_theme.css @@ -71,6 +71,7 @@ -fx-pref-height: 30px; -fx-pref-width: 30px; -fx-background-color: none; + -fx-padding: 0; } .main-window .title .button .fa-icon { @@ -108,7 +109,8 @@ -fx-background-color: PRIMARY_BG, INDICATOR_BG; -fx-background-insets: 0, 1px; -fx-background-radius: 5px, 4px; - -fx-translate-x: 4px; + -fx-translate-x: -1px; + -fx-translate-y: 1px; } /******************************************************************************* @@ -141,7 +143,7 @@ -fx-background-color: CONTROL_BORDER_NORMAL, MAIN_BG; -fx-background-insets: 0 0 1px 0, 1px; -fx-background-radius: 4px 4px 0 0; - -fx-padding: 0.2em 0.4em 0.2em 0.4em; + -fx-padding: 0.2em 1em 0.2em 1em; } .tab-pane > .tab-header-area > .headers-region > .tab:selected { @@ -219,12 +221,13 @@ .toolbar-container .button { -fx-pref-height: 30px; - -fx-pref-width: 30px; + -fx-pref-width: 31px; -fx-background-color: transparent; -fx-background-insets: 0; -fx-background-radius: 0; -fx-border-color: transparent CONTROL_BORDER_NORMAL transparent transparent; - -fx-border-width: 1; + -fx-border-width: 0 1px 0 0; + -fx-padding: 0; } .toolbar-container .button:focused { @@ -318,7 +321,7 @@ -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL; -fx-background-insets: 0, 1px; -fx-background-radius: 4px; - -fx-padding: 0.2em 0.4em 0.2em 0.4em; + -fx-padding: 0.2em 1em 0.2em 1em; } .button:focused { diff --git a/main/ui/src/main/resources/fxml/preferences.fxml b/main/ui/src/main/resources/fxml/preferences.fxml index 78dc2ab74..9bce7a697 100644 --- a/main/ui/src/main/resources/fxml/preferences.fxml +++ b/main/ui/src/main/resources/fxml/preferences.fxml @@ -10,12 +10,12 @@ tabClosingPolicy="UNAVAILABLE" tabDragPolicy="FIXED"> - + - + diff --git a/main/ui/src/main/resources/fxml/preferences_general.fxml b/main/ui/src/main/resources/fxml/preferences_general.fxml index d9123f680..350260b38 100644 --- a/main/ui/src/main/resources/fxml/preferences_general.fxml +++ b/main/ui/src/main/resources/fxml/preferences_general.fxml @@ -17,16 +17,16 @@ - - + - + - diff --git a/main/ui/src/main/resources/fxml/preferences_updates.fxml b/main/ui/src/main/resources/fxml/preferences_updates.fxml index e1050de66..20db878a3 100644 --- a/main/ui/src/main/resources/fxml/preferences_updates.fxml +++ b/main/ui/src/main/resources/fxml/preferences_updates.fxml @@ -15,14 +15,14 @@ - + - - + diff --git a/main/ui/src/main/resources/fxml/unlock2.fxml b/main/ui/src/main/resources/fxml/unlock2.fxml index 741d4aefe..170dd3818 100644 --- a/main/ui/src/main/resources/fxml/unlock2.fxml +++ b/main/ui/src/main/resources/fxml/unlock2.fxml @@ -5,7 +5,6 @@ - @@ -14,21 +13,23 @@ xmlns:fx="http://javafx.com/fxml" fx:controller="org.cryptomator.ui.unlock.UnlockController" minWidth="300" + maxWidth="300" spacing="6"> - + + + - - -