mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Adjust Tag Browser styling to suit new calibre style
This commit is contained in:
parent
0bd81146d8
commit
673d5813b5
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user