Uno Toolkit SystemThemeHelper — Agent Skill
Workflow
Docs lookup: call
uno_platform_docs_search(...)first, thenuno_platform_docs_fetch(sourcePath="…")using thesourcePathfield from a result (a relative.mdpath; add the result'sanchorfor a section). Never pass a URL, a.htmllink, or a hand-built path.
Step 1: Fetch the SystemThemeHelper Documentation
uno_platform_docs_search("Uno Toolkit SystemThemeHelper theme light dark mode detect")
Primary documentation page:
- SystemThemeHelper:
external/uno.toolkit.ui/doc/helpers/SystemThemeHelper.md
Fetch the page:
uno_platform_docs_fetch(sourcePath="external/uno.toolkit.ui/doc/helpers/SystemThemeHelper.md")
Key Principles (Stable)
SystemThemeHelper.GetCurrentOsTheme()— returnsApplicationTheme.LightorApplicationTheme.DarkSystemThemeHelper.GetRootTheme(XamlRoot?)— gets the app theme for a given XamlRootSystemThemeHelper.IsRootInDarkMode(XamlRoot?)— quick check if dark mode is activeSystemThemeHelper.SetRootTheme(XamlRoot?, bool)— set theme (true= dark)SystemThemeHelper.SetApplicationTheme(XamlRoot?, ElementTheme)— set theme using ElementTheme enum- No
ThemeChangedevent exists — there is no event to subscribe to for theme changes - Namespace:
using Uno.Toolkit.UI;
Related Skills
- [[uno-themes-semantic-colors-brushes]] — Semantic color palette and brush system