magscope.app_icon#

Attributes#

Functions#

set_windows_app_user_model_id(→ None)

Set the Windows app identity used for taskbar grouping and icons.

load_app_icon()

Build the MagScope Qt icon with simple small sizes and richer large sizes.

apply_windows_native_window_icon(→ None)

Apply native Windows small and taskbar icons to an existing Qt window.

_load_windows_hicon(→ int)

_set_windows_window_icon(→ None)

_set_windows_class_icon(→ None)

Module Contents#

magscope.app_icon.APP_USER_MODEL_ID = 'MagScope.MagScope.Desktop'[source]#
magscope.app_icon.TASKBAR_ICON_RESOURCE = 'app_icon_taskbar.svg'[source]#
magscope.app_icon.WINDOW_ICON_RESOURCE = 'app_icon_window.svg'[source]#
magscope.app_icon._ICON_PIXMAP_SIZES[source]#
magscope.app_icon._WINDOWS_ICON_HANDLES: list[int] = [][source]#
magscope.app_icon._WM_SETICON = 128[source]#
magscope.app_icon._ICON_SMALL = 0[source]#
magscope.app_icon._ICON_BIG = 1[source]#
magscope.app_icon._GCLP_HICON = -14[source]#
magscope.app_icon._GCLP_HICONSM = -34[source]#
magscope.app_icon.set_windows_app_user_model_id(app_id: str = APP_USER_MODEL_ID) None[source]#

Set the Windows app identity used for taskbar grouping and icons.

magscope.app_icon.load_app_icon()[source]#

Build the MagScope Qt icon with simple small sizes and richer large sizes.

magscope.app_icon.apply_windows_native_window_icon(window: Any) None[source]#

Apply native Windows small and taskbar icons to an existing Qt window.

magscope.app_icon._load_windows_hicon(resource_name: str, size: int) int[source]#
magscope.app_icon._set_windows_window_icon(hwnd: int, icon_type: int, hicon: int) None[source]#
magscope.app_icon._set_windows_class_icon(hwnd: int, index: int, hicon: int) None[source]#