From e89a71064951669d073658fb4c56fcc26a9ff686 Mon Sep 17 00:00:00 2001 From: NicholasBian Date: Fri, 21 May 2021 17:44:24 +0800 Subject: [PATCH 01/14] Add a button for icon picker in GroupDialog.fxml, and leave openIconPicker functions in GroupDialogView.java and GroupDialogViewModel.java for further backend use. --- src/main/java/org/jabref/gui/actions/StandardActions.java | 3 ++- src/main/java/org/jabref/gui/groups/GroupDialog.fxml | 7 +++++++ src/main/java/org/jabref/gui/groups/GroupDialogView.java | 5 +++++ .../java/org/jabref/gui/groups/GroupDialogViewModel.java | 4 ++++ src/main/java/org/jabref/gui/icon/IconTheme.java | 3 ++- 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jabref/gui/actions/StandardActions.java b/src/main/java/org/jabref/gui/actions/StandardActions.java index 7687ce82990..705ed8d3852 100644 --- a/src/main/java/org/jabref/gui/actions/StandardActions.java +++ b/src/main/java/org/jabref/gui/actions/StandardActions.java @@ -167,7 +167,8 @@ public enum StandardActions implements Action { OPEN_FORUM(Localization.lang("Online help forum"), Localization.lang("Online help forum"), IconTheme.JabRefIcons.FORUM), ERROR_CONSOLE(Localization.lang("View event log"), Localization.lang("Display all error messages")), SEARCH_FOR_UPDATES(Localization.lang("Check for updates")), - ABOUT(Localization.lang("About JabRef"), Localization.lang("About JabRef")); + ABOUT(Localization.lang("About JabRef"), Localization.lang("About JabRef")), + SELECT_ICONS(Localization.lang("Open icon panel"), IconTheme.JabRefIcons.SELECT_ICONS); private final String text; private final String description; diff --git a/src/main/java/org/jabref/gui/groups/GroupDialog.fxml b/src/main/java/org/jabref/gui/groups/GroupDialog.fxml index 75053c2749b..48d332cb7bf 100644 --- a/src/main/java/org/jabref/gui/groups/GroupDialog.fxml +++ b/src/main/java/org/jabref/gui/groups/GroupDialog.fxml @@ -41,6 +41,13 @@