diff --git a/CHANGELOG.md b/CHANGELOG.md index 28b18d2fb26..e67835b5ee1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve ### Changed - We integrated the external file types dialog directly inside the preferences. [#8341](https://github.com/JabRef/jabref/pull/8341) +- We disabled the add group button color change after adding 10 new groups. [#8051](https://github.com/JabRef/jabref/issues/8051) - We inverted the logic for resolving [BibTeX strings](https://docs.jabref.org/advanced/strings). This helps to keep `#` chars. By default String resolving is only activated for a couple of standard fields. The list of fields can be modified in the preferences. [#7010](https://github.com/JabRef/jabref/issues/7010), [#7102](https://github.com/JabRef/jabref/issues/7012), [#8303](https://github.com/JabRef/jabref/issues/8303) - We moved the search box in preview preferences closer to the available citation styles list. [#8370](https://github.com/JabRef/jabref/pull/8370) - Changing the preference to show the preview panel as a separate tab now has effect without restarting JabRef. [#8370](https://github.com/JabRef/jabref/pull/8370) diff --git a/src/main/java/org/jabref/gui/groups/GroupTree.css b/src/main/java/org/jabref/gui/groups/GroupTree.css index c44d65c8db5..272e9a8cb83 100644 --- a/src/main/java/org/jabref/gui/groups/GroupTree.css +++ b/src/main/java/org/jabref/gui/groups/GroupTree.css @@ -102,20 +102,6 @@ -fx-translate-x: -0.4em; } -#addNewGroup:active { - -fx-border-width: 0px; - -fx-background-color: -jr-theme; - -fx-padding: 0.5em; - -fx-text-fill: -jr-white; -} - -#addNewGroup:inactive { - -fx-border-width: 0px; - -fx-background-color: -jr-icon-background-active; - -fx-padding: 0.5em; - -fx-text-fill:-jr-black; -} - #groupFilterBar { -fx-background-color: -jr-sidepane-header-background; -fx-border-color: -jr-separator; diff --git a/src/main/java/org/jabref/gui/groups/GroupTreeView.java b/src/main/java/org/jabref/gui/groups/GroupTreeView.java index 9c3d7e06a8c..54187562858 100644 --- a/src/main/java/org/jabref/gui/groups/GroupTreeView.java +++ b/src/main/java/org/jabref/gui/groups/GroupTreeView.java @@ -165,8 +165,6 @@ private void initialize() { }); searchField.textProperty().addListener((observable, oldValue, newValue) -> searchTask.restart()); - setNewGroupButtonStyle(groupTree); - groupTree.rootProperty().bind( EasyBind.map(viewModel.rootGroupProperty(), group -> { @@ -245,7 +243,6 @@ private void initialize() { groupTree.setRowFactory(treeTable -> { TreeTableRow row = new TreeTableRow<>(); row.treeItemProperty().addListener((ov, oldTreeItem, newTreeItem) -> { - setNewGroupButtonStyle(treeTable); boolean isRoot = newTreeItem == treeTable.getRoot(); row.pseudoClassStateChanged(rootPseudoClass, isRoot); @@ -481,19 +478,6 @@ private void setupClearButtonField(CustomTextField customTextField) { } } - private void setNewGroupButtonStyle(TreeTableView groupTree) { - PseudoClass active = PseudoClass.getPseudoClass("active"); - PseudoClass inactive = PseudoClass.getPseudoClass("inactive"); - - if (groupTree.getRoot() != null) { - boolean isActive = groupTree.getExpandedItemCount() <= 10; - addNewGroup.pseudoClassStateChanged(active, isActive); - addNewGroup.pseudoClassStateChanged(inactive, !isActive); - } else { - addNewGroup.pseudoClassStateChanged(active, true); - } - } - private static class DragExpansionHandler { private static final long DRAG_TIME_BEFORE_EXPANDING_MS = 1000; private TreeItem draggedItem;