diff --git a/CHANGELOG.md b/CHANGELOG.md index 91b596d947f..cf9dd437392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# ### Changed +- We cleaned up the group add/edit dialog. [#5826](https://github.com/JabRef/jabref/pull/5826) - We reintroduced the index column. [#5844](https://github.com/JabRef/jabref/pull/5844) ### Fixed diff --git a/src/main/java/org/jabref/gui/Base.css b/src/main/java/org/jabref/gui/Base.css index 8a99e653b8a..c136404b276 100644 --- a/src/main/java/org/jabref/gui/Base.css +++ b/src/main/java/org/jabref/gui/Base.css @@ -311,7 +311,7 @@ .button { -fx-background-color: transparent; - -fx-border-color: rgba(0, 0, 0, 0.23); + -fx-border-color: -fx-outer-border; /* rgba(0, 0, 0, 0.23); */ -fx-border-width: 1px; -fx-border-radius: 4px; -fx-padding: 0.5em 1em 0.5em 1em; @@ -1121,3 +1121,7 @@ We want to have a look that matches our icons in the tool-bar */ -fx-font-weight: bold; -fx-label-padding: 5 0 10 10; } + +TextFlow * { + -fx-fill: -fx-text-background-color; +} diff --git a/src/main/java/org/jabref/gui/groups/GroupDescriptions.java b/src/main/java/org/jabref/gui/groups/GroupDescriptions.java index 6548c0cb1a8..cf45a498046 100644 --- a/src/main/java/org/jabref/gui/groups/GroupDescriptions.java +++ b/src/main/java/org/jabref/gui/groups/GroupDescriptions.java @@ -11,29 +11,6 @@ public class GroupDescriptions { private GroupDescriptions() { } - public static String getDescriptionForPreview(String field, String expr, boolean caseSensitive, boolean regExp) { - String header = regExp ? Localization.lang( - "This group contains entries whose %0 field contains the regular expression %1", - field, expr) : Localization.lang( - "This group contains entries whose %0 field contains the keyword %1", - field, expr); - String caseSensitiveText = caseSensitive ? Localization.lang("case sensitive") : Localization - .lang("case insensitive"); - String footer = regExp ? Localization - .lang("Entries cannot be manually assigned to or removed from this group.") : Localization.lang( - "Additionally, entries whose %0 field does not contain " - + "%1 can be assigned manually to this group by selecting them " - + "then using either drag and drop or the context menu. " - + "This process adds the term %1 to " - + "each entry's %0 field. " - + "Entries can be removed manually from this group by selecting them " - + "then using the context menu. " - + "This process removes the term %1 from " - + "each entry's %0 field.", - field, expr); - return String.format("%s (%s). %s", header, caseSensitiveText, footer); - } - public static String getShortDescriptionKeywordGroup(KeywordGroup keywordGroup, boolean showDynamic) { StringBuilder sb = new StringBuilder(); sb.append(""); @@ -65,14 +42,6 @@ public static String getShortDescriptionKeywordGroup(KeywordGroup keywordGroup, } - public static String getDescriptionForPreview() { - return Localization.lang("This group contains entries based on manual assignment. " - + "Entries can be assigned to this group by selecting them " - + "then using either drag and drop or the context menu. " - + "Entries can be removed from this group by selecting them " - + "then using the context menu."); - } - public static String getShortDescriptionExplicitGroup(ExplicitGroup explicitGroup) { StringBuilder sb = new StringBuilder(); sb.append("").append(explicitGroup.getName()).append(" - ").append(Localization.lang("static group")); @@ -118,5 +87,4 @@ public static String getShortDescription(SearchGroup searchGroup, boolean showDy } return sb.toString(); } - } diff --git a/src/main/java/org/jabref/gui/groups/GroupDialog.fxml b/src/main/java/org/jabref/gui/groups/GroupDialog.fxml new file mode 100644 index 00000000000..797af93a1ad --- /dev/null +++ b/src/main/java/org/jabref/gui/groups/GroupDialog.fxml @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +