Adjust Tag Browser styling to suit new calibre style

This commit is contained in:
Kovid Goyal 2014-04-24 22:58:03 +05:30
parent 0bd81146d8
commit 673d5813b5

View File

@ -130,8 +130,8 @@ class TagsView(QTreeView): # {{{
self.setStyleSheet(''' self.setStyleSheet('''
QTreeView::item { QTreeView::item {
border: 1px solid transparent; border: 1px solid transparent;
padding-top:0.9ex; padding-top:0.8ex;
padding-bottom:0.9ex; padding-bottom:0.8ex;
} }
QTreeView::item:hover { QTreeView::item:hover {
@ -142,6 +142,9 @@ class TagsView(QTreeView): # {{{
''' + ('' if gprefs['tag_browser_old_look'] else stylish_tb)) ''' + ('' if gprefs['tag_browser_old_look'] else stylish_tb))
if gprefs['tag_browser_old_look']: if gprefs['tag_browser_old_look']:
self.setAlternatingRowColors(True) self.setAlternatingRowColors(True)
# Allowing keyboard focus looks bad in the Qt Fusion style and is useless
# anyway since the enter/spacebar keys do nothing
self.setFocusPolicy(Qt.NoFocus)
@property @property
def hidden_categories(self): def hidden_categories(self):