From d9c87b8e3e2b321eab31df842b780a75f6087b21 Mon Sep 17 00:00:00 2001 From: Christian Bartsch Date: Wed, 14 Sep 2016 14:40:52 +0200 Subject: [PATCH] icon does not change when toggling global search --- src/main/java/net/sf/jabref/gui/IconTheme.java | 3 +-- src/main/java/net/sf/jabref/gui/search/GlobalSearchBar.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/sf/jabref/gui/IconTheme.java b/src/main/java/net/sf/jabref/gui/IconTheme.java index 38771301c0c..2177138bcca 100644 --- a/src/main/java/net/sf/jabref/gui/IconTheme.java +++ b/src/main/java/net/sf/jabref/gui/IconTheme.java @@ -157,8 +157,7 @@ public enum JabRefIcon { FORUM("\uf28c"), /* css: forum */ FACEBOOK("\uf20c"), /* css: facebook */ BLOG("\uf46b"), /* css: rss */ - GLOBAL_SEARCH_ON("\uF1E7"), /* css: earth */ - GLOBAL_SEARCH_OFF("\uF1E8"), /* css: earth-off */ + GLOBAL_SEARCH("\uF1E7"), /* css: earth */ // STILL MISSING: GROUP_REGULAR("\uF4E6", Color.RED); diff --git a/src/main/java/net/sf/jabref/gui/search/GlobalSearchBar.java b/src/main/java/net/sf/jabref/gui/search/GlobalSearchBar.java index 3328de0adad..d10bead4d5c 100644 --- a/src/main/java/net/sf/jabref/gui/search/GlobalSearchBar.java +++ b/src/main/java/net/sf/jabref/gui/search/GlobalSearchBar.java @@ -83,8 +83,7 @@ public GlobalSearchBar(JabRefFrame frame) { currentResults.setFont(currentResults.getFont().deriveFont(Font.BOLD)); searchField.setColumns(30); - JToggleButton globalSearch = new JToggleButton(IconTheme.JabRefIcon.GLOBAL_SEARCH_OFF.getSmallIcon(), searchPreferences.isGlobalSearch()); - globalSearch.setSelectedIcon(IconTheme.JabRefIcon.GLOBAL_SEARCH_ON.getSmallIcon()); + JToggleButton globalSearch = new JToggleButton(IconTheme.JabRefIcon.GLOBAL_SEARCH.getSmallIcon(), searchPreferences.isGlobalSearch()); globalSearch.setToolTipText(Localization.lang("Search globally")); globalSearch.addActionListener(e -> { searchPreferences.setGlobalSearch(globalSearch.isSelected());