mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
set the background colour in the preview dialog
This commit is contained in:
parent
c89356f6f1
commit
54db92e6ab
1 changed files with 1 additions and 0 deletions
|
@ -1046,6 +1046,7 @@ class PreviewDialog(QDialog):
|
|||
c = self.cards[self.currentCard]
|
||||
self.dialog.webView.setHtml(
|
||||
"<style>" + self.deck.css +
|
||||
("\nhtml { background: %s }" % c.cardModel.lastFontColour) +
|
||||
"\ndiv { white-space: pre-wrap; }</style>" +
|
||||
mungeQA(self.deck, c.htmlQuestion()) +
|
||||
"<br><br><hr><br><br>" +
|
||||
|
|
Loading…
Reference in a new issue