From 48da59321b7823183c845e4422fdafddbafd1f47 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Sat, 18 May 2019 19:41:21 +0200 Subject: [PATCH] Set doc viewer header colour to match the editor --- nw/gui/docviewer.py | 5 +++++ sample/sampleNovel/nwProject.nwx | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/nw/gui/docviewer.py b/nw/gui/docviewer.py index b6f3d666..0ab7df11 100644 --- a/nw/gui/docviewer.py +++ b/nw/gui/docviewer.py @@ -29,6 +29,11 @@ class GuiDocViewer(QTextBrowser): self.theParent = theParent self.theDoc = self.document() + self.theDoc.setDefaultStyleSheet(""" + h1, h2, h3, h4 { + color: rgb(0,155,200); + } + """) self.theDoc.setDocumentMargin(self.mainConf.textMargin[0]) self.setMinimumWidth(300) diff --git a/sample/sampleNovel/nwProject.nwx b/sample/sampleNovel/nwProject.nwx index 4383468b..4c1043a5 100644 --- a/sample/sampleNovel/nwProject.nwx +++ b/sample/sampleNovel/nwProject.nwx @@ -1,5 +1,5 @@ - + Sample Project Sample Project @@ -8,8 +8,8 @@ False - 96b68994dfa3d - 96b68994dfa3d + 636b6aa9b697b + 636b6aa9b697b