mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
60c78bef61
commit
7e84ed6ed5
@ -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>…')%word +
|
||||
'</p></body></html>')
|
||||
|
Loading…
x
Reference in New Issue
Block a user