Skip to content

Commit

Permalink
Added auto-renew icon (not sure why the formatting breaks...)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus committed Mar 26, 2016
1 parent 55fc5f2 commit 5106440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/sf/jabref/gui/IconTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public enum JabRefIcon {
CASE_SENSITIVE("\uf02c"), /* css: mdi-alphabetical */
REG_EX("\uf451"), /*css: mdi-regex */
CONSOLE("\uf18d"), /*css: console */
AUTO_RENEW(
"\uf06a"), /*css: auto-renew */
// STILL MISSING:
GROUP_REGULAR("\uF4E6", Color.RED);

Expand Down
7 changes: 2 additions & 5 deletions src/main/java/net/sf/jabref/gui/search/SearchBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

import net.sf.jabref.Globals;
import net.sf.jabref.JabRefPreferences;
import net.sf.jabref.gui.BasePanel;
import net.sf.jabref.gui.IconTheme;
import net.sf.jabref.gui.WrapLayout;
import net.sf.jabref.gui.*;
import net.sf.jabref.gui.autocompleter.AutoCompleteSupport;
import net.sf.jabref.gui.help.HelpFiles;
Expand Down Expand Up @@ -103,7 +100,7 @@ public SearchBar(BasePanel basePanel) {
});


liveSearch = new JToggleButton(IconTheme.JabRefIcon.REFRESH.getSmallIcon(),
liveSearch = new JToggleButton(IconTheme.JabRefIcon.AUTO_RENEW.getSmallIcon(),
Globals.prefs.getBoolean(JabRefPreferences.SEARCH_LIVE));
liveSearch.setToolTipText(Localization.lang("Search on typing"));
liveSearch.addActionListener(e -> {
Expand Down Expand Up @@ -147,11 +144,11 @@ public SearchBar(BasePanel basePanel) {
JToolBar toolBar = new OSXCompatibleToolbar();
toolBar.setFloatable(false);
toolBar.add(clearSearchButton);
toolBar.add(liveSearch);
toolBar.addSeparator();
toolBar.add(regularExp);
toolBar.add(caseSensitive);
toolBar.addSeparator();
toolBar.add(liveSearch);
toolBar.add(searchModeButton);
toolBar.addSeparator();
toolBar.add(openCurrentResultsInDialog);
Expand Down

0 comments on commit 5106440

Please sign in to comment.