diff --git a/imgsrc/gear.svg b/imgsrc/gear.svg new file mode 100644 index 0000000000..c40d1c7064 --- /dev/null +++ b/imgsrc/gear.svg @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + image/svg+xml + + + + + Kovid Goyal + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/images/gear.png b/resources/images/gear.png new file mode 100644 index 0000000000..9220638f49 Binary files /dev/null and b/resources/images/gear.png differ diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index fb7e6c1e10..e5906faf82 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -214,7 +214,7 @@ class SearchBar(QWidget): # {{{ x.setMinimumContentsLength(10) l.addWidget(x) - parent.advanced_search_toggle_action = ac = parent.search.add_action('search.png', QLineEdit.LeadingPosition) + parent.advanced_search_toggle_action = ac = parent.search.add_action('gear.png', QLineEdit.LeadingPosition) parent.addAction(ac) parent.keyboard.register_shortcut('advanced search toggle', _('Advanced search'), default_keys=("Shift+Ctrl+F",), @@ -222,6 +222,8 @@ class SearchBar(QWidget): # {{{ self.search_button = QToolButton() self.search_button.setToolButtonStyle(Qt.ToolButtonTextOnly) + self.search_button.setIcon(QIcon(I('search.png'))) + self.search_button.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) self.search_button.setText(_('Search')) self.search_button.setAutoRaise(True) self.search_button.setCursor(Qt.PointingHandCursor) @@ -264,6 +266,8 @@ class SearchBar(QWidget): # {{{ x.setToolTip(_( 'Use an existing Saved search or create a new one' )) + x.setText(_('Saved search')) + x.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) x.setCursor(Qt.PointingHandCursor) x.setPopupMode(x.InstantPopup) x.setAutoRaise(True) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index 33a08e3097..9446eae4a7 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -447,7 +447,7 @@ class SearchBoxMixin(object): # {{{ def init_search_box_mixin(self): self.search.initialize('main_search_history', colorize=True, - help_text=_('Search (For advanced search click the icon to the left)')) + help_text=_('Search (For advanced search click the gear icon to the left)')) self.search.cleared.connect(self.search_box_cleared) # Queued so that search.current_text will be correct self.search.changed.connect(self.search_box_changed,