HostAppearance interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface HostAppearance

The desktop's appearance as the host pushed it (appearance/1). null is a preference the host does not know. A host may decide some members for the window instead of reading them from the desktop, as for a guest's page in a hosted region; those values are here too.

Properties

colorScheme

readonly colorScheme: AppearanceColorScheme | null;

The desktop's colour scheme, or the one the host decided for the window. A window with a scheme of its own shows it in prefers-color-scheme instead.

contrast

readonly contrast: AppearanceContrast | null;

No documentation.

reducedMotion

readonly reducedMotion: boolean | null;

No documentation.

textScale

readonly textScale: number | null;

The desktop's text size as a factor of the default: 1 for the default, 1.5 for half as large again.

accentColor

readonly accentColor: string | null;

The desktop's accent colour, #rrggbb.

systemColors

readonly systemColors: AppearanceSystemColors | null;

The forced palette while contrast is "forced-colors", otherwise null.