From 466d83129e98db5cdd30798aac91b6402b485068 Mon Sep 17 00:00:00 2001 From: deeplow Date: Fri, 25 Nov 2022 12:42:09 +0000 Subject: [PATCH] Increase minimum window width for macOS The save group box would get partially trimmed when running in macOS this appears to be due to differences in rendering fonts and widget sizes. Refs #270 --- dangerzone/gui/main_window.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dangerzone/gui/main_window.py b/dangerzone/gui/main_window.py index c725f01..3673cdf 100644 --- a/dangerzone/gui/main_window.py +++ b/dangerzone/gui/main_window.py @@ -29,7 +29,12 @@ class MainWindow(QtWidgets.QMainWindow): self.setWindowIcon(self.dangerzone.get_window_icon()) self.setMinimumWidth(600) - self.setMinimumHeight(430) + if platform.system() == "Darwin": + # FIXME have a different height for macOS due to font-size inconsistencies + # https://github.com/freedomofpress/dangerzone/issues/270 + self.setMinimumHeight(470) + else: + self.setMinimumHeight(430) # Header logo = QtWidgets.QLabel()