mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 21:36:10 +01:00
Also apply book details stylesheet to comments editor widget
This commit is contained in:
parent
4d937e2d5d
commit
e8f5b51b6c
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
from calibre.gui2.widgets import LineEditECM
|
||||
from calibre.utils.config import tweaks
|
||||
from calibre.utils.imghdr import what
|
||||
from calibre.gui2.book_details import css
|
||||
from polyglot.builtins import filter, iteritems, itervalues, unicode_type
|
||||
|
||||
# Cleanup Qt markup {{{
|
||||
|
|
@ -185,6 +186,7 @@ def editing_cursor(self, set_cursor=True):
|
|||
def __init__(self, parent=None):
|
||||
QTextEdit.__init__(self, parent)
|
||||
self.setTabChangesFocus(True)
|
||||
self.document().setDefaultStyleSheet(css())
|
||||
font = self.font()
|
||||
f = QFontInfo(font)
|
||||
delta = tweaks['change_book_details_font_size_by'] + 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue