Skip to main content
Version: 0.83

Theme

Kind: class

EXPERIMENTAL

Properties​

IsEmpty​

readonly bool IsEmpty

EXPERIMENTAL

An empty theme is used when the final theme is not yet known. It will generally return transparent colors.

Constructors​

Theme​

Theme(IReactContext reactContext, ICustomResourceLoader resourceLoader)

EXPERIMENTAL

Methods​

GetDefaultTheme​

static Theme GetDefaultTheme(IReactContext context)

EXPERIMENTAL

PlatformBrush​

CompositionBrush PlatformBrush(string platformColor)

EXPERIMENTAL

SetDefaultResources​

static void SetDefaultResources(ReactInstanceSettings settings, ICustomResourceLoader theme)

EXPERIMENTAL

TryGetPlatformColor​

bool TryGetPlatformColor(string platformColor, out Color color)

EXPERIMENTAL

Events​

ThemeChanged​

EXPERIMENTAL

Type: EventHandler

Referenced by​