public sealed class Shades : IStorable
A collection of related shades.

Constructors

Shades

#
Deserialisation constructor.
public Shades(
reader
)

Shades

#
Create a new colour shade scheme.
public Shades(
normal,
hidden,
disabled,
normalSelected,
hiddenSelected,
disabledSelected,
tentative
)

Fields

DefaultDim

#
Gets the default shading scheme in dark mode.
public static readonly Shades DefaultDim

DefaultLit

#
Gets the default shading scheme in bright mode.
public static readonly Shades DefaultLit

Indexers

this[]

#
Figure out the most appropriate shade for a given object.
public Shade this[
documentObject,
Document object to match.
selected
Selected state override.
] { get; }

this[]

#
Figure out the most appropriate shade for a given object.
public Shade this[
documentObject
Document object to match.
] { get; }

this[]

#
Gets the colour associated with the given kind.
public Shade this[] { get; }

Methods

Fade

#
Multiply the alpha value colours in this collection with the given factor.
public Shades Fade(
factor
Fading factor. 0=fully transparent, 1=no change.
)
Modified palette.

Interpolate

#
Interpolate between schemes.
public Shades Interpolate(
other,
Other scheme.
factor
Interpolation factor.
)
Interpolated scheme.

Store

#
This method is called whenever the instance is required to serialize itself.
public void Store(
writer
Writer object to serialize with.
)
Store

With

#
Modify one of the colours.
public Shades With(
kind,
Index of colour spec to modify.
shade
New colour.
)
Modified colours.