mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Also apply book details stylesheet to comments editor widget
This commit is contained in:
parent
4d937e2d5d
commit
e8f5b51b6c
@ -26,6 +26,7 @@ from calibre.gui2 import NO_URL_FORMATTING, choose_files, error_dialog, gprefs
|
|||||||
from calibre.gui2.widgets import LineEditECM
|
from calibre.gui2.widgets import LineEditECM
|
||||||
from calibre.utils.config import tweaks
|
from calibre.utils.config import tweaks
|
||||||
from calibre.utils.imghdr import what
|
from calibre.utils.imghdr import what
|
||||||
|
from calibre.gui2.book_details import css
|
||||||
from polyglot.builtins import filter, iteritems, itervalues, unicode_type
|
from polyglot.builtins import filter, iteritems, itervalues, unicode_type
|
||||||
|
|
||||||
# Cleanup Qt markup {{{
|
# Cleanup Qt markup {{{
|
||||||
@ -185,6 +186,7 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{
|
|||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
QTextEdit.__init__(self, parent)
|
QTextEdit.__init__(self, parent)
|
||||||
self.setTabChangesFocus(True)
|
self.setTabChangesFocus(True)
|
||||||
|
self.document().setDefaultStyleSheet(css())
|
||||||
font = self.font()
|
font = self.font()
|
||||||
f = QFontInfo(font)
|
f = QFontInfo(font)
|
||||||
delta = tweaks['change_book_details_font_size_by'] + 1
|
delta = tweaks['change_book_details_font_size_by'] + 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user