Book information popup: Fix a regression that caused incorrect color for titles in dark mode. Fixes #2034999 [Text color of the Book details window is black in 6.26](https://bugs.launchpad.net/calibre/+bug/2034999)

This commit is contained in:
Kovid Goyal 2023-09-09 20:36:44 +05:30
parent 62dd8bd292
commit 0b83d13fc9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -15,7 +15,7 @@ from qt.core import (
from calibre import fit_image
from calibre.gui2 import NO_URL_FORMATTING, gprefs
from calibre.gui2.book_details import (
create_open_cover_with_menu, css, details_context_menu_event, render_html, set_html,
create_open_cover_with_menu, resolved_css, details_context_menu_event, render_html, set_html,
)
from calibre.gui2.ui import get_gui
from calibre.gui2.widgets import CoverView
@ -123,7 +123,7 @@ class Details(HTMLDisplay):
HTMLDisplay.__init__(self, parent)
self.book_info = book_info
self.edit_metadata = getattr(parent, 'edit_metadata', None)
self.setDefaultStyleSheet(css())
self.setDefaultStyleSheet(resolved_css())
self.allow_context_menu = allow_context_menu
self.is_locked = is_locked