From f2e479cfbb4ac8dfaea50dd0a7a8d267a1e84b5b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Jun 2017 08:18:38 +0530 Subject: [PATCH] Also flatten the search highlights toggle button --- src/calibre/gui2/layout.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index e6d83ce5e1..f70becdf0a 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -230,6 +230,9 @@ class SearchBar(QFrame): # {{{ _('Do Quick Search (you can also press the Enter key)')) x = parent.highlight_only_button = QToolButton(self) + x.setAutoRaise(True) + x.setText(_('Highlight')) + x.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) x.setIcon(QIcon(I('arrow-down.png'))) l.addWidget(x)