Fix images issues on HDPI resolution

This commit is contained in:
Denis Surkes
2019-12-25 11:26:25 -05:00
parent 5ba0da31b3
commit aff1312532
4 changed files with 165 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import sys
from threading import Thread
import urllib3
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
@@ -71,6 +72,7 @@ def main():
app.setApplicationVersion(__version__)
app_icon = util.get_default_icon()[1]
app.setWindowIcon(app_icon)
app.setAttribute(Qt.AA_UseHighDpiPixmaps) # This fix images on HDPI resolution, not tested on non HDPI
if local_config['ui']['style']:
app.setStyle(str(local_config['ui']['style']))