From 902c66cf1e8121578372c54503c2daed62654b67 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Mon, 1 Jul 2024 18:19:30 +0200 Subject: [PATCH] removed vbox id and renamed style --- .../org/cryptomator/ui/mainwindow/VaultListController.java | 2 +- src/main/resources/css/dark_theme.css | 2 +- src/main/resources/css/light_theme.css | 2 +- src/main/resources/fxml/vault_list.fxml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java index db615061e..dbe81bcc8 100644 --- a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java +++ b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java @@ -118,7 +118,7 @@ public class VaultListController implements FxController { vaultList.maxHeightProperty().bind(vaultList.prefHeightProperty()); vaultList.prefWidthProperty().bind(scrollPane.widthProperty()); - vbox.heightProperty().addListener((_, oldValue, newValue) -> { + scrollPane.heightProperty().addListener((_, oldValue, newValue) -> { if(newValue.doubleValue()>oldValue.doubleValue()){ scrollPane.setVvalue(1.0); } diff --git a/src/main/resources/css/dark_theme.css b/src/main/resources/css/dark_theme.css index bba91cb11..d01230f09 100644 --- a/src/main/resources/css/dark_theme.css +++ b/src/main/resources/css/dark_theme.css @@ -341,7 +341,7 @@ -fx-background-color: CONTROL_BG_ARMED; } -.vault-list-box { +.left-side-panel { -fx-background-color: CONTROL_BG_NORMAL; } diff --git a/src/main/resources/css/light_theme.css b/src/main/resources/css/light_theme.css index d000c0464..7d7d53645 100644 --- a/src/main/resources/css/light_theme.css +++ b/src/main/resources/css/light_theme.css @@ -340,7 +340,7 @@ -fx-background-color: CONTROL_BG_ARMED; } -.vault-list-box { +.left-side-panel { -fx-background-color: CONTROL_BG_NORMAL; } diff --git a/src/main/resources/fxml/vault_list.fxml b/src/main/resources/fxml/vault_list.fxml index a1fe141db..ad80c9a2c 100644 --- a/src/main/resources/fxml/vault_list.fxml +++ b/src/main/resources/fxml/vault_list.fxml @@ -16,9 +16,9 @@ fx:id="root" fx:controller="org.cryptomator.ui.mainwindow.VaultListController" minWidth="206"> - + - +