set the background colour in the preview dialog

This commit is contained in:
Damien Elmes 2009-04-11 00:42:23 +09:00
parent c89356f6f1
commit 54db92e6ab

View file

@ -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>" +