From 2c92eb04e0cb174f7c99fc4bd1f15ea420c694b0 Mon Sep 17 00:00:00 2001 From: Dimitrios Dimos <56233132+dimitrisdimos00@users.noreply.github.com> Date: Tue, 25 Jan 2022 22:56:23 +0200 Subject: [PATCH] Made search button in Web search wider. Also skewed side panel titles to the left (#8463) * Made Search button in Web Search panel as wide as the Add group button of the Groups side panel. fixes #8397 * Skewed side pane title to the left. fixes #8397 * Recorded change to CHANGELOG.md fixes #8397 * Corrected type in CHANGELOG.md fixes #8397 * Deleted forgotten comment fixes #8397 --- CHANGELOG.md | 2 ++ .../org/jabref/gui/importer/fetcher/WebSearchPaneView.java | 4 +--- src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08c2e298cda..b178e247e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve ### Changed +- We made the Search button in Web Search wider. We also skewed the panel titles to the left [#8397](https://github.com/JabRef/jabref/issues/8397) + ### Fixed - We fixed an issue where an exception could occur when saving the preferences [#7614](https://github.com/JabRef/jabref/issues/7614) diff --git a/src/main/java/org/jabref/gui/importer/fetcher/WebSearchPaneView.java b/src/main/java/org/jabref/gui/importer/fetcher/WebSearchPaneView.java index fb4f9352850..a37a4b1f670 100644 --- a/src/main/java/org/jabref/gui/importer/fetcher/WebSearchPaneView.java +++ b/src/main/java/org/jabref/gui/importer/fetcher/WebSearchPaneView.java @@ -1,7 +1,6 @@ package org.jabref.gui.importer.fetcher; import javafx.css.PseudoClass; -import javafx.geometry.Pos; import javafx.scene.control.Button; import javafx.scene.control.ComboBox; import javafx.scene.control.TextField; @@ -88,8 +87,7 @@ private void initialize() { Button search = new Button(Localization.lang("Search")); search.setDefaultButton(false); search.setOnAction(event -> viewModel.search()); - - setAlignment(Pos.CENTER); + search.setMaxWidth(Double.MAX_VALUE); getChildren().addAll(fetcherContainer, query, search); } } diff --git a/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java b/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java index 5993f1a4c95..104a3c42518 100644 --- a/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java +++ b/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java @@ -61,7 +61,7 @@ private Node createHeaderView() { Label label = new Label(sidePaneType.getTitle()); BorderPane headerView = new BorderPane(); - headerView.setCenter(label); + headerView.setLeft(label); headerView.setRight(buttonContainer); headerView.getStyleClass().add("sidePaneComponentHeader");