diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index 27dcb87..5dfec61 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -21,10 +21,15 @@ from syncplay.utils import formatTime, sameFilename, sameFilesize, sameFiledurat from syncplay.vendor import Qt from syncplay.vendor.Qt import QtCore, QtWidgets, QtGui, __binding__, __binding_version__, __qt_version__, IsPySide, IsPySide2 from syncplay.vendor.Qt.QtCore import Qt, QSettings, QSize, QPoint, QUrl, QLine, QDateTime +applyDPIScaling = True +if isLinux(): + applyDPIScaling = False +else: + applyDPIScaling = True if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'): - QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) + QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, applyDPIScaling) if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'): - QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True) + QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, applyDPIScaling) if IsPySide2: from PySide2.QtCore import QStandardPaths if isMacOS() and IsPySide: