fontcolor_theme
Desktop UI

App

The service DuiApp allows to set some global application settings, such as the theme, dark mode, etc.

API DuiApp(source)

searchclear
Name
Description
darkMode: WritableSignal<boolean | undefined>
platform: WritableSignal<"web" | "darwin" | "linux" | "win32">
theme: "auto" | "light" | "dark"
themeDetection: boolean
disableThemeDetection(): void
getPlatform(): string
getVibrancy(): "light" | "ultra-dark"
isDarkMode(): boolean
isDarkModeOverwritten(): boolean
setAutoDarkMode(): void
setDarkMode(darkMode?: boolean): void
setGlobalDarkMode(darkMode: boolean): void
setPlatform(platform: "web" | "darwin" | "linux" | "win32"): void
start(): void