setTheme
setTheme(
theme?):Promise<void>
Defined in: app.ts:213
Set app’s theme, pass in null or undefined to follow system theme
null | Theme
Promise<void>
import { setTheme } from '@tauri-apps/api/app';await setTheme('dark');- iOS / Android: Unsupported.
2.0.0
© 2025 Tauri Contributors. CC-BY / MIT