From 98757bc2410795e21e70d6fb928de58c190065e7 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 30 May 2020 20:55:13 +0200 Subject: [PATCH] Replaced the scaling variables on document titlebar --- nw/gui/elements/doctitlebar.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nw/gui/elements/doctitlebar.py b/nw/gui/elements/doctitlebar.py index 38425961..8c5208e4 100644 --- a/nw/gui/elements/doctitlebar.py +++ b/nw/gui/elements/doctitlebar.py @@ -52,19 +52,20 @@ class GuiDocTitleBar(QLabel): self.setText("") self.setIndent(0) self.setMargin(0) - self.setContentsMargins(0,0,0,0) + self.setContentsMargins(0, 0, 0, 0) self.setAutoFillBackground(True) self.setAlignment(Qt.AlignCenter) self.setWordWrap(True) self.setFrameShape(QFrame.NoFrame) self.setLineWidth(0) + lblPalette = self.palette() lblPalette.setColor(QPalette.Window, QColor(*self.theTheme.colBack)) lblPalette.setColor(QPalette.Text, QColor(*self.theTheme.colText)) self.setPalette(lblPalette) lblFont = self.font() - lblFont.setPointSizeF(0.9*self.theTheme.defFontSize) + lblFont.setPointSizeF(0.9*self.theTheme.fontPointSize) self.setFont(lblFont) logger.debug("DocTitleBar initialisation complete")