Kaynağa Gözat

removed vbox id and renamed style

Jan-Peter Klein 1 yıl önce
ebeveyn
işleme
902c66cf1e

+ 1 - 1
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);
 			}

+ 1 - 1
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;
 }
 

+ 1 - 1
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;
 }
 

+ 2 - 2
src/main/resources/fxml/vault_list.fxml

@@ -16,9 +16,9 @@
 		   fx:id="root"
 		   fx:controller="org.cryptomator.ui.mainwindow.VaultListController"
 		   minWidth="206">
-	<VBox styleClass="vault-list-box">
+	<VBox styleClass="left-side-panel">
 		<ScrollPane fx:id="scrollPane" hbarPolicy="NEVER">
-			<VBox fx:id="vbox">
+			<VBox>
 				<ListView fx:id="vaultList" editable="true" fixedCellSize="60">
 					<contextMenu>
 						<fx:include source="vault_list_contextmenu.fxml"/>