Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6f2590c

Browse files
authored
Merge pull request#161 from arthurferrai/fix/taskbar-icons
Improved taskbar and active_window icon rendering
2 parentsc91716e +d04a401 commit6f2590c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/core/utils/win32/app_icons.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
importwin32api
88
importctypes
99
importctypes.wintypes
10+
fromcore.utils.systray.utilsimporthicon_to_image
1011
fromcore.utils.win32.app_uwpimportget_package
1112
importxml.etree.ElementTreeasET
1213
frompathlibimportPath
@@ -35,6 +36,10 @@ def get_window_icon(hwnd, smooth_level = 0):
3536
hicon=win32gui.GetClassLong(hwnd,win32con.GCL_HICON)
3637

3738
ifhicon:
39+
img=hicon_to_image(hicon)
40+
ifimgisnotNone:
41+
returnimg
42+
3843
hdc_handle=win32gui.GetDC(0)
3944
ifnothdc_handle:
4045
raiseException("Failed to get DC handle")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp