From ec81fc65253196716428340addbfafcddd3d2b55 Mon Sep 17 00:00:00 2001 From: JMS063 <121246951+JMS063@users.noreply.github.com> Date: Fri, 3 Nov 2023 07:30:14 +1100 Subject: [PATCH] Make generate button wider (#10588) * fix issue#10507 changed the size of the button * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * fix issue #10507 * Generified changelog entry for small visual fixes * Update Base.css --------- Co-authored-by: Oliver Kopp Co-authored-by: Minghao Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com> --- CHANGELOG.md | 3 ++- src/main/java/org/jabref/gui/Base.css | 5 +++++ src/main/java/org/jabref/gui/EntryTypeView.java | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aeb53cd903..b45208a55f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,8 +23,9 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv ### Fixed -- We fixed an issue where the added protected term has unwanted leading and trailing whitespaces, where the formatted text has unwanted empty brackets and where the word at the cursor in the textbox can be added to the list. [#10415](https://github.com/JabRef/jabref/issues/10415). +- We fixed an issue where the added protected term has unwanted leading and trailing whitespaces, where the formatted text has unwanted empty brackets and where the word at the cursor in the textbox can be added to the list. [#10415](https://github.com/JabRef/jabref/issues/10415) - We fixed an issue where in the merge dialog the file field of entries was not correctly merged when the first and second entry both contained values inside the file field. [#10572](https://github.com/JabRef/jabref/issues/10572) +- We fixed some small inconsistencies in the user interface. [#10507](https://github.com/JabRef/jabref/issues/10507) ### Removed diff --git a/src/main/java/org/jabref/gui/Base.css b/src/main/java/org/jabref/gui/Base.css index 68f96eebf28..8aa35586865 100644 --- a/src/main/java/org/jabref/gui/Base.css +++ b/src/main/java/org/jabref/gui/Base.css @@ -1447,3 +1447,8 @@ We want to have a look that matches our icons in the tool-bar */ .table-column .rotated > .label { -fx-content-display: graphic-only; } + +.customGenerateButton { + -fx-padding: 0.5em 2em; + -fx-min-width: 10em; +} diff --git a/src/main/java/org/jabref/gui/EntryTypeView.java b/src/main/java/org/jabref/gui/EntryTypeView.java index 6b4bb2f8f0a..238d80d7d17 100644 --- a/src/main/java/org/jabref/gui/EntryTypeView.java +++ b/src/main/java/org/jabref/gui/EntryTypeView.java @@ -88,6 +88,7 @@ public EntryTypeView(LibraryTab libraryTab, DialogService dialogService, Prefere }); Button btnGenerate = (Button) this.getDialogPane().lookupButton(generateButton); + btnGenerate.getStyleClass().add("customGenerateButton"); btnGenerate.textProperty().bind(EasyBind.map(viewModel.searchingProperty(), searching -> searching ? Localization.lang("Searching...") : Localization.lang("Generate"))); btnGenerate.disableProperty().bind(viewModel.idFieldValidationStatus().validProperty().not().or(viewModel.searchingProperty()));