mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 22:44:35 +01:00
Fix #4641 (Search in Ebook viewer yields hard to see highlighting.)
This commit is contained in:
parent
88c540b328
commit
d4c862ba94
1 changed files with 1 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ def __init__(self, shortcuts, parent=None):
|
|||
|
||||
def set_user_stylesheet(self):
|
||||
raw = config().parse().user_css
|
||||
raw = '::selection {background:#ffff00; color:#000;}\n'+raw
|
||||
data = 'data:text/css;charset=utf-8;base64,'
|
||||
data += b64encode(raw.encode('utf-8'))
|
||||
self.settings().setUserStyleSheetUrl(QUrl(data))
|
||||
|
|
|
|||
Loading…
Reference in a new issue