mirror of
https://github.com/samschott/maestral.git
synced 2024-10-06 18:37:20 +03:00
don't use HiDPI icons in linux
this fixes a too small tray icon in GNOME with HiDPI scaling, at the cost at the other icons being pixelated
This commit is contained in:
parent
ebfa731a38
commit
0b8c2f1d48
@ -338,7 +338,11 @@ class MaestralApp(QtWidgets.QSystemTrayIcon):
|
||||
def run():
|
||||
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
|
||||
app = QtWidgets.QApplication(["Maestral"])
|
||||
app.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps)
|
||||
if platform.system() == "Darwin":
|
||||
# Fixes a Qt bug where the tray icon is too small on GNOME with HiDPI
|
||||
# scaling enabled. As a trade off, we get low resolution pixmaps in the rest of
|
||||
# the UI - but this is better than a bad tray icon.
|
||||
app.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps)
|
||||
app.setQuitOnLastWindowClosed(False)
|
||||
|
||||
auth_session_gui = OAuth2SessionGUI()
|
||||
|
Loading…
Reference in New Issue
Block a user