In This Article

ThemeGeneratorSession Class

Provides access to theme generation data.

public class ThemeGeneratorSession
Inheritance:
object object

Properties

AccentColorRamp

The ColorRamp to use for accent semantic colors.

public ColorRamp AccentColorRamp { get; }

Property Value

ColorRamp

DangerColorRamp

The ColorRamp to use for danger semantic colors.

public ColorRamp DangerColorRamp { get; }

Property Value

ColorRamp

Definition

The ThemeDefinition that initiated the theme generation.

public ThemeDefinition Definition { get; }

Property Value

ThemeDefinition

InformationColorRamp

The ColorRamp to use for information semantic colors.

public ColorRamp InformationColorRamp { get; }

Property Value

ColorRamp

IsDark

Whether the ThemeVariant is a dark theme variant.

public bool IsDark { get; }

Property Value

bool

NeutralColorRamp

The ColorRamp to use for neutral (e.g., grayscale) colors.

public ColorRamp NeutralColorRamp { get; }

Property Value

ColorRamp

Palette

The ColorPalette that provides access to all colors.

public ColorPalette Palette { get; }

Property Value

ColorPalette

ResourceDictionary

The ResourceDictionary into which the theme generator session is appending resources.

public ResourceDictionary ResourceDictionary { get; }

Property Value

ResourceDictionary

SuccessColorRamp

The ColorRamp to use for success semantic colors.

public ColorRamp SuccessColorRamp { get; }

Property Value

ColorRamp

ThemeVariant

A Avalonia.Styling.ThemeVariant indicating the target theme variant, which may be null for resources like thicknesses that are shared among all theme variants.

public ThemeVariant? ThemeVariant { get; }

Property Value

ThemeVariant

WarningColorRamp

The ColorRamp to use for warning semantic colors.

public ColorRamp WarningColorRamp { get; }

Property Value

ColorRamp

Inherited Members

Extension Methods