ColorSchemeName
The platform's color scheme, 'light' or 'dark', as appearance.colorScheme reports it.
Utilização
Read the current color scheme.
Este tipo é usado por appearance.colorScheme
// Read the current color scheme.
import { appearance, watch } from 'kuito';
appearance.colorScheme.value; // 'light' | 'dark' | null
appearance.fontScale.value; // 1 by default
watch(appearance.fontScale, (scale) => console.log(scale)); // in a componentDeclaração do tipo
export type ColorSchemeName = Scheme;Tipo
"light" | "dark"Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.