Skip to content

setTheme

Module @netwiv/api/app · Kind Function

import { setTheme } from '@netwiv/api/app';

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

function setTheme(theme?: Theme | null | undefined): Promise<void>
import { setTheme } from '@netwiv/api/app';
await setTheme('dark');
  • iOS / Android: Unsupported.

Upstream since 2.0.0


Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.