mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-01 19:22:23 +02:00
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
This commit is contained in:
parent
d582e25606
commit
466d83129e
1 changed files with 6 additions and 1 deletions
|
@ -29,6 +29,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||||
self.setWindowIcon(self.dangerzone.get_window_icon())
|
self.setWindowIcon(self.dangerzone.get_window_icon())
|
||||||
|
|
||||||
self.setMinimumWidth(600)
|
self.setMinimumWidth(600)
|
||||||
|
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)
|
self.setMinimumHeight(430)
|
||||||
|
|
||||||
# Header
|
# Header
|
||||||
|
|
Loading…
Reference in a new issue