Skip to content

Commit

Permalink
Icon does not change when toggling global search (JabRef#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriba authored and zesaro committed Oct 27, 2016
1 parent 9bcbfe3 commit e010099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/sf/jabref/gui/IconTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/net/sf/jabref/gui/search/GlobalSearchBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e010099

Please sign in to comment.