From 2d1b73b99b54512860f52892b2cb5f3095afeae5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Aug 2020 09:47:50 +0530 Subject: [PATCH] Fix footnote popup colors not being overriden in dark mode --- src/pyj/read_book/footnotes.pyj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/footnotes.pyj b/src/pyj/read_book/footnotes.pyj index e72a7fb758..5a4d593e11 100644 --- a/src/pyj/read_book/footnotes.pyj +++ b/src/pyj/read_book/footnotes.pyj @@ -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)