From acbc8a2b2b755d381b9201a14c4bf9ebfcddfd9a Mon Sep 17 00:00:00 2001 From: Linus Dietz Date: Fri, 23 Aug 2019 22:25:45 +0200 Subject: [PATCH] Separate New Article and New Entry Action in the Toolbar (#5204) --- src/main/java/org/jabref/gui/JabRefFrame.java | 1 + src/main/java/org/jabref/gui/actions/StandardActions.java | 2 +- src/main/java/org/jabref/gui/icon/IconTheme.java | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jabref/gui/JabRefFrame.java b/src/main/java/org/jabref/gui/JabRefFrame.java index de52c9fbc11..0de67c19386 100644 --- a/src/main/java/org/jabref/gui/JabRefFrame.java +++ b/src/main/java/org/jabref/gui/JabRefFrame.java @@ -524,6 +524,7 @@ private Node createToolbar() { HBox rightSide = new HBox( factory.createIconButton(StandardActions.NEW_ARTICLE, new NewEntryAction(this, StandardEntryType.Article, dialogService, Globals.prefs, stateManager)), + factory.createIconButton(StandardActions.NEW_ENTRY, new NewEntryAction(this, dialogService, Globals.prefs, stateManager)), factory.createIconButton(StandardActions.DELETE_ENTRY, new OldDatabaseCommandWrapper(Actions.DELETE, this, stateManager)), new Separator(Orientation.VERTICAL), factory.createIconButton(StandardActions.UNDO, new OldDatabaseCommandWrapper(Actions.UNDO, this, stateManager)), diff --git a/src/main/java/org/jabref/gui/actions/StandardActions.java b/src/main/java/org/jabref/gui/actions/StandardActions.java index 09f06684fdf..385e9a744a0 100644 --- a/src/main/java/org/jabref/gui/actions/StandardActions.java +++ b/src/main/java/org/jabref/gui/actions/StandardActions.java @@ -119,7 +119,7 @@ public enum StandardActions implements Action { SELECT_ALL(Localization.lang("Select all"), KeyBinding.SELECT_ALL), NEW_ENTRY(Localization.lang("New entry"), IconTheme.JabRefIcons.ADD_ENTRY, KeyBinding.NEW_ENTRY), - NEW_ARTICLE(Localization.lang("New article"), IconTheme.JabRefIcons.ADD_ENTRY), + NEW_ARTICLE(Localization.lang("New article"), IconTheme.JabRefIcons.ADD_ARTICLE), NEW_ENTRY_FROM_PLAINTEX(Localization.lang("New entry from plain text"), KeyBinding.NEW_FROM_PLAIN_TEXT), LIBRARY_PROPERTIES(Localization.lang("Library properties")), EDIT_PREAMBLE(Localization.lang("Edit preamble")), diff --git a/src/main/java/org/jabref/gui/icon/IconTheme.java b/src/main/java/org/jabref/gui/icon/IconTheme.java index 83338444164..131292628cf 100644 --- a/src/main/java/org/jabref/gui/icon/IconTheme.java +++ b/src/main/java/org/jabref/gui/icon/IconTheme.java @@ -151,7 +151,8 @@ public enum JabRefIcons implements JabRefIcon { ADD(MaterialDesignIcon.PLUS_CIRCLE_OUTLINE), ADD_FILLED(MaterialDesignIcon.PLUS_CIRCLE), ADD_NOBOX(MaterialDesignIcon.PLUS), - ADD_ENTRY(MaterialDesignIcon.BOOKMARK_PLUS), + ADD_ARTICLE(MaterialDesignIcon.PLUS), + ADD_ENTRY(MaterialDesignIcon.PLAYLIST_PLUS), EDIT_ENTRY(MaterialDesignIcon.TOOLTIP_EDIT), EDIT_STRINGS(MaterialDesignIcon.TOOLTIP_TEXT), FOLDER(MaterialDesignIcon.FOOD_FORK_DRINK),