uno-toolkit-system-theme-helper

Official

Detect and switch app theme at runtime.

Authorunoplatform
Version1.0.0
Installs0

System Documentation

What problem does it solve?

System theme detection and runtime switching can be cumbersome across platforms; this Skill provides a centralized API to detect the current OS theme and apply an app-level theme programmatically.

Core Features & Use Cases

  • GetCurrentOsTheme() returns Light or Dark.
  • GetRootTheme(XamlRoot?) and IsRootInDarkMode(XamlRoot?) determine theme state for a root.
  • SetRootTheme(XamlRoot?, bool) and SetApplicationTheme(XamlRoot?, ElementTheme) switch themes at runtime.
  • Use cases: Build theme-aware UI that responds to system theme; toggle dark mode in code; ensure cross-platform consistency.

Quick Start

Detect the current OS theme with GetCurrentOsTheme() and apply SetApplicationTheme(null, ElementTheme.Dark) to switch to dark mode.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: uno-toolkit-system-theme-helper
Download link: https://github.com/unoplatform/studio/archive/main.zip#uno-toolkit-system-theme-helper

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.