Skip to content

Commit e2819d2

Browse files
rebased with master
1 parent aaf5dda commit e2819d2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/PyMca5/PyMcaGui/pymca/PyMcaMain.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,11 @@
187187
if __name__ == "__main__":
188188
sys.excepthook = qt.exceptionHandler
189189

190-
# To avoid "Dark mode"; this force main windows to be light (but not all submenus)
191190
if sys.platform == 'win32':
191+
# To avoid "Dark mode"; this force main windows to be light (but not all submenus)
192192
_ = os.environ.setdefault("QT_QPA_PLATFORM", "windows:darkmode=0")
193-
194-
195-
# minimal fix matplotlib fonts when Windows scale (DPI) is not 100%
196-
if sys.platform == 'win32':
197-
os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "0"
193+
# minimal fix for matplotlib fonts when Windows scale (DPI) is not 100%
194+
_ = os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "0"
198195

199196
app = qt.QApplication(sys.argv)
200197

0 commit comments

Comments
 (0)