From c11682dcf9a0332a4c5487afc93f593bffd3a569 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 31 May 2020 12:21:16 +0200 Subject: [PATCH] Use minimum width, not fixed with for status bar clock --- nw/gui/statusbar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nw/gui/statusbar.py b/nw/gui/statusbar.py index 20677766..0e712086 100644 --- a/nw/gui/statusbar.py +++ b/nw/gui/statusbar.py @@ -101,11 +101,12 @@ class GuiMainStatus(QStatusBar): self.addPermanentWidget(self.statsText) ## The Session Clock + ### Set the mimimum width so the label doesn't rescale every second self.timeIcon = QLabel() self.timeText = QLabel("") self.timeIcon.setPixmap(self.theTheme.getPixmap("status_time", (iPx, iPx))) self.timeText.setToolTip("Session Time") - self.timeText.setFixedWidth(self.theTheme.getTextWidth("00:00:00.")) + self.timeText.setMinimumWidth(self.theTheme.getTextWidth("00:00:00:")) self.timeIcon.setContentsMargins(0, 0, 0, 0) self.timeText.setContentsMargins(0, 0, 0, 0) self.addPermanentWidget(self.timeIcon)