mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove the tag browser focus colors.
This commit is contained in:
parent
19c7694108
commit
5aaabbf106
@ -23,7 +23,7 @@ from calibre.gui2.tag_browser.model import (TagTreeItem, TAG_SEARCH_STATES,
|
|||||||
TagsModel, DRAG_IMAGE_ROLE, COUNT_ROLE)
|
TagsModel, DRAG_IMAGE_ROLE, COUNT_ROLE)
|
||||||
from calibre.gui2.widgets import EnLineEdit
|
from calibre.gui2.widgets import EnLineEdit
|
||||||
from calibre.gui2 import (config, gprefs, choose_files, pixmap_to_data,
|
from calibre.gui2 import (config, gprefs, choose_files, pixmap_to_data,
|
||||||
rating_font, empty_index, is_dark_theme)
|
rating_font, empty_index)
|
||||||
from calibre.utils.icu import sort_key
|
from calibre.utils.icu import sort_key
|
||||||
from calibre.utils.serialize import json_loads
|
from calibre.utils.serialize import json_loads
|
||||||
from polyglot.builtins import unicode_type, range, zip
|
from polyglot.builtins import unicode_type, range, zip
|
||||||
@ -213,7 +213,7 @@ class TagsView(QTreeView): # {{{
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
self.setStyleSheet(('''
|
self.setStyleSheet('''
|
||||||
QTreeView::item {
|
QTreeView::item {
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
padding-top:PADex;
|
padding-top:PADex;
|
||||||
@ -225,13 +225,8 @@ class TagsView(QTreeView): # {{{
|
|||||||
border: 1px solid #bfcde4;
|
border: 1px solid #bfcde4;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
QTreeView::item:focus
|
'''.replace('PAD', unicode_type(gprefs['tag_browser_item_padding'])) + (
|
||||||
{
|
'' if gprefs['tag_browser_old_look'] else stylish_tb))
|
||||||
background-color:FOCUS_COLOR;
|
|
||||||
}
|
|
||||||
'''.replace('PAD', unicode_type(gprefs['tag_browser_item_padding']))
|
|
||||||
.replace('FOCUS_COLOR', '#027524' if is_dark_theme() else '#b4ecb4')
|
|
||||||
+ ('' if gprefs['tag_browser_old_look'] else stylish_tb)))
|
|
||||||
|
|
||||||
def set_look_and_feel(self):
|
def set_look_and_feel(self):
|
||||||
self.set_style_sheet()
|
self.set_style_sheet()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user