diff --git a/src/main/java/org/cryptomator/ui/mainwindow/MainWindowSceneFactory.java b/src/main/java/org/cryptomator/ui/mainwindow/MainWindowSceneFactory.java index c297b8f0f..fbc96513b 100644 --- a/src/main/java/org/cryptomator/ui/mainwindow/MainWindowSceneFactory.java +++ b/src/main/java/org/cryptomator/ui/mainwindow/MainWindowSceneFactory.java @@ -30,9 +30,7 @@ public class MainWindowSceneFactory extends DefaultSceneFactory { @Override protected void setupDefaultAccelerators(Scene scene, Stage stage) { - if (SystemUtils.IS_OS_WINDOWS) { - scene.getAccelerators().put(ALT_F4, window::close); - } else { + if (!SystemUtils.IS_OS_WINDOWS) { scene.getAccelerators().put(SHORTCUT_W, window::close); } scene.getAccelerators().put(SHORTCUT_N, vaultListController.get()::didClickAddNewVault); diff --git a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java index d18cb8cd9..0ea6642de 100644 --- a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java +++ b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java @@ -36,7 +36,6 @@ import javafx.scene.input.MouseEvent; import javafx.scene.input.TransferMode; import javafx.scene.layout.HBox; import javafx.scene.layout.StackPane; -import javafx.scene.layout.VBox; import javafx.stage.Stage; import java.io.File; import java.io.IOException; @@ -75,9 +74,9 @@ public class VaultListController implements FxController { private final BooleanBinding useCondensedMode; public ListView vaultList; - public VBox vbox; public StackPane root; - public HBox addVaultButton; + @FXML + private HBox addVaultButton; @FXML private ContextMenu addVaultContextMenu; diff --git a/src/main/resources/css/light_theme.css b/src/main/resources/css/light_theme.css index 3081ef2d3..5820bae7b 100644 --- a/src/main/resources/css/light_theme.css +++ b/src/main/resources/css/light_theme.css @@ -177,8 +177,8 @@ /* windows needs an explicit border: */ .main-window.os-windows { - -fx-border-color: TITLE_BG; - -fx-border-width: 1px; + -fx-border-color: CONTROL_BORDER_NORMAL; + -fx-border-width: 1px 0 0 0; } .main-window .button-bar { diff --git a/src/main/resources/fxml/main_window.fxml b/src/main/resources/fxml/main_window.fxml index cefa18e58..bb650848d 100644 --- a/src/main/resources/fxml/main_window.fxml +++ b/src/main/resources/fxml/main_window.fxml @@ -8,7 +8,7 @@ fx:id="root" fx:controller="org.cryptomator.ui.mainwindow.MainWindowController" styleClass="main-window"> - + diff --git a/src/main/resources/fxml/vault_list.fxml b/src/main/resources/fxml/vault_list.fxml index 465ef199d..b59b838a8 100644 --- a/src/main/resources/fxml/vault_list.fxml +++ b/src/main/resources/fxml/vault_list.fxml @@ -32,22 +32,18 @@ - + - - - + - + - - - +