Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Added if on GUI painter
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoneiESS committed Jun 30, 2023
1 parent e87393c commit b75559d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nexus-constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def closeEvent(self, event: QCloseEvent) -> None:
if "help" in parser.parse_args():
exit(0)
logging.basicConfig(level=logging.INFO)
QApplication.setStyle("Fusion")
if sys.platform == "darwin":
QApplication.setStyle("Fusion") # this helps macOS but causes Linux GUI to be unusable
QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
surfaceFormat = QSurfaceFormat()
surfaceFormat.setSwapInterval(1)
Expand Down

0 comments on commit b75559d

Please sign in to comment.