mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05: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]
|
c = self.cards[self.currentCard]
|
||||||
self.dialog.webView.setHtml(
|
self.dialog.webView.setHtml(
|
||||||
"<style>" + self.deck.css +
|
"<style>" + self.deck.css +
|
||||||
|
("\nhtml { background: %s }" % c.cardModel.lastFontColour) +
|
||||||
"\ndiv { white-space: pre-wrap; }</style>" +
|
"\ndiv { white-space: pre-wrap; }</style>" +
|
||||||
mungeQA(self.deck, c.htmlQuestion()) +
|
mungeQA(self.deck, c.htmlQuestion()) +
|
||||||
"<br><br><hr><br><br>" +
|
"<br><br><hr><br><br>" +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue