From 16d1357c73a81aac04025b6d961fa1f74542b1d5 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Mon, 1 Jun 2020 12:28:31 +0200 Subject: [PATCH] Also scale '...' buttons --- nw/gui/build.py | 2 +- nw/gui/dialogs/preferences.py | 4 ++-- nw/gui/dialogs/projectload.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nw/gui/build.py b/nw/gui/build.py index 3c2e73da..72df5920 100644 --- a/nw/gui/build.py +++ b/nw/gui/build.py @@ -181,7 +181,7 @@ class GuiBuildNovel(QDialog): self.optState.getString("GuiBuildNovel", "textFont", self.mainConf.textFont) ) self.fontButton = QPushButton("...") - self.fontButton.setMaximumWidth(30) + self.fontButton.setMaximumWidth(int(2.5*self.theTheme.getTextWidth("..."))) self.fontButton.clicked.connect(self._selectFont) self.textSize = QSpinBox(self) diff --git a/nw/gui/dialogs/preferences.py b/nw/gui/dialogs/preferences.py index be45b396..35abd6b3 100644 --- a/nw/gui/dialogs/preferences.py +++ b/nw/gui/dialogs/preferences.py @@ -188,7 +188,7 @@ class GuiConfigEditGeneralTab(QWidget): self.guiFont.setFixedWidth(162) self.guiFont.setText(self.mainConf.guiFont) self.fontButton = QPushButton("...") - self.fontButton.setMaximumWidth(30) + self.fontButton.setMaximumWidth(int(2.5*self.theTheme.getTextWidth("..."))) self.fontButton.clicked.connect(self._selectFont) self.mainForm.addRow( "Font family", @@ -393,7 +393,7 @@ class GuiConfigEditLayoutTab(QWidget): self.textStyleFont.setFixedWidth(162) self.textStyleFont.setText(self.mainConf.textFont) self.fontButton = QPushButton("...") - self.fontButton.setMaximumWidth(30) + self.fontButton.setMaximumWidth(int(2.5*self.theTheme.getTextWidth("..."))) self.fontButton.clicked.connect(self._selectFont) self.mainForm.addRow( "Font family", diff --git a/nw/gui/dialogs/projectload.py b/nw/gui/dialogs/projectload.py index 99c2eaa3..63f0be9f 100644 --- a/nw/gui/dialogs/projectload.py +++ b/nw/gui/dialogs/projectload.py @@ -102,7 +102,7 @@ class GuiProjectLoad(QDialog): self.selPath.setReadOnly(True) self.browseButton = QPushButton("...") - self.browseButton.setMaximumWidth(30) + self.browseButton.setMaximumWidth(int(2.5*self.theTheme.getTextWidth("..."))) self.browseButton.clicked.connect(self._doBrowse) self.projectForm.addWidget(self.lblRecent, 0, 0, 1, 3)