Tauri Core API - v2.9.1
    Preparing search index...

    Function setTheme

    • Sets the application's theme. Pass in null or undefined to follow the system theme.

      Parameters

      • Optionaltheme: Theme | null

      Returns Promise<void>

      import { setTheme } from '@tauri-apps/api/app';
      await setTheme('dark');
      • iOS / Android: Unsupported.

      2.0.0