Fix footnote popup colors not being overriden in dark mode

This commit is contained in:
Kovid Goyal 2020-08-08 09:47:50 +05:30
parent 4a24987fee
commit 2d1b73b99b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -5,7 +5,9 @@ from __python__ import bound_methods, hash_literals
from dom import clear
from iframe_comm import IframeClient
from read_book.resources import finalize_resources, unserialize_html
from read_book.settings import apply_settings, update_settings
from read_book.settings import (
apply_settings, set_color_scheme_class, update_settings
)
block_names = dict.fromkeys(v"['p', 'div', 'li', 'td', 'h1', 'h2', 'h2', 'h3', 'h4', 'h5', 'h6', 'body']", True).as_object()
block_display_styles = dict.fromkeys(v"['block', 'list-item', 'table-cell', 'table']", True).as_object()
@ -241,6 +243,7 @@ class PopupIframeBoss:
window.setTimeout(self.content_loaded, 2)
return
document.body.classList.add('calibre-footnote-container')
set_color_scheme_class()
apply_settings()
self.comm.send_message('content_loaded', height=document.documentElement.scrollHeight + 25)