mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
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:
parent
62dd8bd292
commit
0b83d13fc9
@ -15,7 +15,7 @@ from qt.core import (
|
|||||||
from calibre import fit_image
|
from calibre import fit_image
|
||||||
from calibre.gui2 import NO_URL_FORMATTING, gprefs
|
from calibre.gui2 import NO_URL_FORMATTING, gprefs
|
||||||
from calibre.gui2.book_details import (
|
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.ui import get_gui
|
||||||
from calibre.gui2.widgets import CoverView
|
from calibre.gui2.widgets import CoverView
|
||||||
@ -123,7 +123,7 @@ class Details(HTMLDisplay):
|
|||||||
HTMLDisplay.__init__(self, parent)
|
HTMLDisplay.__init__(self, parent)
|
||||||
self.book_info = book_info
|
self.book_info = book_info
|
||||||
self.edit_metadata = getattr(parent, 'edit_metadata', None)
|
self.edit_metadata = getattr(parent, 'edit_metadata', None)
|
||||||
self.setDefaultStyleSheet(css())
|
self.setDefaultStyleSheet(resolved_css())
|
||||||
self.allow_context_menu = allow_context_menu
|
self.allow_context_menu = allow_context_menu
|
||||||
self.is_locked = is_locked
|
self.is_locked = is_locked
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user