From 7a25a1d94d0fc609d88c2cc6d4ea3f4bd6a01936 Mon Sep 17 00:00:00 2001 From: Carl Christian Snethlage Date: Thu, 20 Feb 2020 15:58:04 +0100 Subject: [PATCH 1/2] Refactored subtile changes to optics of library properties --- .../jabref/gui/SaveOrderConfigDisplay.fxml | 39 +++--- .../cleanup/FieldFormatterCleanupsPanel.java | 5 + .../LibraryPropertiesDialog.fxml | 130 ++++++++++-------- .../LibraryPropertiesDialogView.java | 3 - 4 files changed, 97 insertions(+), 80 deletions(-) diff --git a/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml b/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml index 64fac7cdc94..17e458f2e81 100644 --- a/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml +++ b/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.fxml @@ -24,37 +24,38 @@ - + - - - + + + + - - - - - - + + + - diff --git a/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java b/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java index 7ef6dfc4d56..f75e08b9761 100644 --- a/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java +++ b/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java @@ -78,6 +78,9 @@ public void setValues(FieldFormatterCleanups formatterCleanups) { } private void buildLayout() { + setHgap(10.0); + setVgap(4.0); + ColumnConstraints first = new ColumnConstraints(); first.setPrefWidth(25); ColumnConstraints second = new ColumnConstraints(); @@ -101,6 +104,7 @@ private void buildLayout() { add(cleanupEnabled, 0, 0, 4, 1); actionsList = new ListView<>(actions); + actionsList.setMinHeight(100.0); actionsList.getSelectionModel().setSelectionMode(SelectionMode.SINGLE); new ViewModelListCellFactory() .withText(action -> action.getField().getDisplayName() + ": " + action.getFormatter().getName()) @@ -161,6 +165,7 @@ private void updateDescription() { */ private GridPane getSelectorPanel() { GridPane builder = new GridPane(); + builder.setHgap(10.0); Set fields = FieldFactory.getCommonFields(); fields.add(InternalField.KEY_FIELD); Set fieldsString = fields.stream().map(Field::getDisplayName).sorted().collect(Collectors.toCollection(TreeSet::new)); diff --git a/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml b/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml index 12f7febeb96..7d43bd84e46 100644 --- a/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml +++ b/src/main/java/org/jabref/gui/libraryproperties/LibraryPropertiesDialog.fxml @@ -1,69 +1,83 @@ - - + - + + + + + + + + + + + + + + + - - - + + + + + + - - - + + + - - - - - - - - + + + + + + + - - - - - - - - -