ThemeGeneratorSession Class
Provides access to theme generation data.
public class ThemeGeneratorSession
- Inheritance:
- object object
Properties
AccentColorRamp
The ColorRamp to use for accent semantic colors.
DangerColorRamp
The ColorRamp to use for danger semantic colors.
Definition
The ThemeDefinition that initiated the theme generation.
InformationColorRamp
The ColorRamp to use for information semantic colors.
IsDark
Whether the ThemeVariant is a dark theme variant.
NeutralColorRamp
The ColorRamp to use for neutral (e.g., grayscale) colors.
Palette
The ColorPalette that provides access to all colors.
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.
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.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()