From 4464171cb4b5c77ad91d78796a27f99b6256366d Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Mon, 1 Jun 2020 12:10:07 +0200 Subject: [PATCH] ... and the same for outline tree --- nw/gui/elements/outline.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nw/gui/elements/outline.py b/nw/gui/elements/outline.py index 7c196d2e..982f21c9 100644 --- a/nw/gui/elements/outline.py +++ b/nw/gui/elements/outline.py @@ -89,8 +89,9 @@ class GuiProjectOutline(QTreeWidget): self.mainConf = nw.CONFIG self.theParent = theParent self.theProject = theProject - self.theIndex = self.theParent.theIndex - self.optState = self.theProject.optState + self.theTheme = theParent.theTheme + self.theIndex = theParent.theIndex + self.optState = theProject.optState self.headerMenu = GuiOutlineHeaderMenu(self) self.firstView = True @@ -337,6 +338,8 @@ class GuiProjectOutline(QTreeWidget): headItem.setTextAlignment(self.colIndex[nwOutline.CCOUNT], Qt.AlignRight) headItem.setTextAlignment(self.colIndex[nwOutline.WCOUNT], Qt.AlignRight) headItem.setTextAlignment(self.colIndex[nwOutline.PCOUNT], Qt.AlignRight) + for hItem in self.treeOrder: + headItem.setFont(self.colIndex[hItem], self.theTheme.guiFont) currTitle = None currChapter = None @@ -427,6 +430,9 @@ class GuiProjectOutline(QTreeWidget): newItem.setText(self.colIndex[nwOutline.ENTITY], ", ".join(theRefs[nwKeyWords.ENTITY_KEY])) newItem.setText(self.colIndex[nwOutline.CUSTOM], ", ".join(theRefs[nwKeyWords.CUSTOM_KEY])) + for i in self.treeOrder: + newItem.setFont(self.colIndex[i], self.theTheme.guiFont) + return newItem # END Class GuiProjectOutline