From 84e3cf0762a0acc6f8567064cd67c8a8de3ba0a8 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Mon, 16 Sep 2024 14:48:06 +0200 Subject: [PATCH 1/3] removed green border and fixed margin for windows --- src/main/resources/css/light_theme.css | 4 ++-- src/main/resources/fxml/main_window.fxml | 2 +- src/main/resources/fxml/vault_list.fxml | 12 ++++-------- 3 files changed, 7 insertions(+), 11 deletions(-) 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 @@ - + - - - + - + - - - + From 3adffad087eb2d839e45f56fb45ac8017bf8aef8 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Mon, 16 Sep 2024 14:55:51 +0200 Subject: [PATCH 2/3] removed ALT+F4 shortcut, it is already registered by default --- .../org/cryptomator/ui/mainwindow/MainWindowSceneFactory.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); From 32f266c721570872a0ef89675f9f53d3dcf84b04 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Mon, 16 Sep 2024 15:26:45 +0200 Subject: [PATCH 3/3] removed unused vbox in controller --- .../org/cryptomator/ui/mainwindow/VaultListController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java index 5cd4c38ef..a166f3a5a 100644 --- a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java +++ b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java @@ -35,7 +35,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; @@ -73,9 +72,9 @@ public class VaultListController implements FxController { private final FxApplicationWindows appWindows; public ListView vaultList; - public VBox vbox; public StackPane root; - public HBox addVaultButton; + @FXML + private HBox addVaultButton; @FXML private ContextMenu addVaultContextMenu;