mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
fixes #1987 by adding highdpi qt attributes.
This commit is contained in:
parent
827c68bf75
commit
2c10d3f5b2
@ -69,6 +69,8 @@ def run_ui(game: Optional[Game], new_map: bool, dev: bool) -> None:
|
|||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
|
|
||||||
app.setAttribute(Qt.AA_DisableWindowContextHelpButton)
|
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
|
# init the theme and load the stylesheet based on the theme index
|
||||||
liberation_theme.init()
|
liberation_theme.init()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user