You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated favicon handling to require local .ico files in Windows native mode.
Added a function to create unique Windows application IDs based on the title.
Improved icon setting logic and added error logging for better stability.
Cleaned up the codebase by removing old window icon tests.
Updated documentation to match the new icon loading requirements.
:param port: use this port (default: 8080 in normal mode, and an automatically determined open port in native mode)
92
92
:param title: page title (default: `'NiceGUI'`, can be overwritten per page)
93
93
:param viewport: page meta viewport content (default: `'width=device-width, initial-scale=1'`, can be overwritten per page)
94
-
:param favicon: relative filepath, absolute URL to a favicon (default: `None`, NiceGUI icon will be used) or emoji (e.g. `'🚀'`, works for most browsers)
94
+
:param favicon: relative filepath, absolute URL to a favicon (default: `None`, NiceGUI icon will be used) or emoji (e.g. `'🚀'`, works for most browsers).
95
+
On Windows native mode, only local file paths are used for the native window icon, and Win32 icon loading expects `.ico`.
95
96
:param dark: whether to use Quasar's dark mode (default: `False`, use `None` for "auto" mode)
96
97
:param language: language for Quasar elements (default: `'en-US'`)
97
98
:param binding_refresh_interval: interval for updating active links (default: 0.1 seconds, bigger is more CPU friendly, *since version 3.4.0*: can be ``None`` to disable update loop)
Copy file name to clipboardExpand all lines: website/documentation/content/section_configuration_deployment.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,8 @@ def urls_demo():
46
46
This is typically pre-installed on standard Windows installations,
47
47
but may be missing on minimal or freshly installed systems.
48
48
49
-
On Windows, a file-path `favicon` is also used as the native window icon (taskbar, title bar); `.ico` recommended.
49
+
On Windows, a file-path `favicon` is also used as the native window icon (taskbar, title bar).
50
+
Native icon loading uses Win32 `LoadImageW(..., IMAGE_ICON, ...)`, so `.ico` is required (`.cur`/`.ani` are also supported by Win32 icon loading; `.png` is not).
0 commit comments