Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
merge: Merge pull request #206 from levirs565/windows_taskbar
Browse files Browse the repository at this point in the history
Fix guiscrcpy use Python generic icon in Windows taskbar
  • Loading branch information
srevinsaju authored Jan 12, 2021
2 parents 1dc430d + 11390f6 commit 69fc782
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions guiscrcpy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ def cli(
# it will log the traceback to the terminal
# but it would not be visible to users without CLI interface
# enable High DPI scaling

if platform.system() == "Windows":
import ctypes
# https://stackoverflow.com/a/1552105/9986755
appid = "srevinsaju.guiscrcpy"
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(appid)

QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
# use HIGH DPI icons
QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
Expand Down

0 comments on commit 69fc782

Please sign in to comment.