E-book viewer: Use font size setting for dictionary view as well

E-book viewer: Use the default font size setting for the dictionary view as well. Fixes #1232025 [[Enhancement] Make font size of Dictionary, dependent of viewer font size](https://bugs.launchpad.net/calibre/+bug/1232025)
This commit is contained in:
Kovid Goyal 2013-10-05 12:40:11 +05:30
parent 60c78bef61
commit 7e84ed6ed5

View File

@ -487,6 +487,11 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
at_start=True)
def lookup(self, word):
from calibre.gui2.viewer.documentview import config
opts = config().parse()
settings = self.dictionary_view.page().settings()
settings.setFontSize(settings.DefaultFontSize, opts.default_font_size)
settings.setFontSize(settings.DefaultFixedFontSize, opts.mono_font_size)
self.dictionary_view.setHtml('<html><body><p>'+
_('Connecting to dict.org to lookup: <b>%s</b>&hellip;')%word +
'</p></body></html>')