fixes #1987 by adding highdpi qt attributes.

This commit is contained in:
Benjamin Fischer
2022-03-12 10:56:48 +01:00
committed by RndName
parent 42929b08d8
commit faf70debce

View File

@@ -61,6 +61,8 @@ def run_ui(game: Optional[Game]) -> None:
app = QApplication(sys.argv)
app.setAttribute(Qt.AA_DisableWindowContextHelpButton)
app.setAttribute(Qt.AA_EnableHighDpiScaling, True) # enable highdpi scaling
app.setAttribute(Qt.AA_UseHighDpiPixmaps, True) # use highdpi icons
# init the theme and load the stylesheet based on the theme index
liberation_theme.init()