mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:35:18 +02:00
Forgot to also use central css for details popup
This commit is contained in:
parent
901f1b1b74
commit
77141acd8b
1 changed files with 2 additions and 2 deletions
|
|
@ -83,6 +83,7 @@ class Details(HTMLDisplay):
|
|||
def __init__(self, book_info, parent=None):
|
||||
HTMLDisplay.__init__(self, parent)
|
||||
self.book_info = book_info
|
||||
self.document().setDefaultStyleSheet(css())
|
||||
|
||||
def sizeHint(self):
|
||||
return QSize(350, 350)
|
||||
|
|
@ -115,7 +116,6 @@ def __init__(self, parent, view, row, link_delegate):
|
|||
|
||||
self.details = Details(parent.book_details.book_info, self)
|
||||
self.details.anchor_clicked.connect(self.on_link_clicked)
|
||||
self.css = css()
|
||||
self.link_delegate = link_delegate
|
||||
self.details.setAttribute(Qt.WA_OpaquePaintEvent, False)
|
||||
palette = self.details.palette()
|
||||
|
|
@ -282,7 +282,7 @@ def refresh(self, row, mi=None):
|
|||
dpr = self.devicePixelRatio()
|
||||
self.cover_pixmap.setDevicePixelRatio(dpr)
|
||||
self.resize_cover()
|
||||
html = render_html(mi, self.css, True, self, pref_name='popup_book_display_fields')
|
||||
html = render_html(mi, True, self, pref_name='popup_book_display_fields')
|
||||
set_html(mi, html, self.details)
|
||||
self.marked = mi.marked
|
||||
self.cover.setBackgroundBrush(self.marked_brush if mi.marked else self.normal_brush)
|
||||
|
|
|
|||
Loading…
Reference in a new issue