public sealed class Skin : IStorable
Represents a collection of immutable UI skinning settings.

Constructors

Skin

#
public Skin(IReader reader)
Deserialization constructor.
reader (IReader)Reader object.

Skin

#
public Skin(Shape shape, Shades shades, GripsSkin gripsSkin, WiresSkin wiresSkin, MessagingSkin messagingSkin, CanvasSkin canvasSkin, Fades fades = null, IconsSkin iconsSkin = null)
Skin constructor.
shape (Shape)
shades (Shades)
gripsSkin (GripsSkin)
wiresSkin (WiresSkin)
messagingSkin (MessagingSkin)
canvasSkin (CanvasSkin)
fades (Fades = null)
iconsSkin (IconsSkin = null)

Fields

DefaultDim

#
public static readonly Skin DefaultDim
Gets the default skin in dark mode.

DefaultLit

#
public static readonly Skin DefaultLit

Properties

Canvas

#
public CanvasSkin Canvas { get; }
Gets the settings associated with canvas display.

Current

#
public static Skin Current { get; }
Gets the default skin in bright mode.
The skin the user chose, for the current dark mode setting. Anything drawing objects outside a canvas, such as previews and thumbnails, should use this rather than the built-in skins.

Fades

#
public Fades Fades { get; }
Gets or sets the fading properties. These are only meaningful during the redraw events of controls that support zooming, and as such are assigned and un-assigned often and mutably. Fades are not interpolated or (de)serialised.

Grips

#
public GripsSkin Grips { get; }
Gets the grip properties specified by this skin.

Icons

#
public IconsSkin Icons { get; }
Gets the palette and filter icons are drawn with.

Messaging

#
public MessagingSkin Messaging { get; }
Gets the settings associated with messages.

Shades

#
public Shades Shades { get; }
Gets the colour shading schemes specified by this skin.

Shape

#
public Shape Shape { get; }
Gets the shape properties specified by this skin.

Wires

#
public WiresSkin Wires { get; }
Gets the wire properties specified by this skin.

Methods

Interpolate

#
public Skin Interpolate(Skin other, float factor)
Interpolate between two skins.
other (Skin)
factor (float)

LoadFromFile

#
public static Skin LoadFromFile(string file)
Load a skin from a file.
file (string)File to load from.
Loaded skin.

SaveToFile

#
public static void SaveToFile(string file, Skin skin)
Save a skin to a file.
file (string)File to save to.
skin (Skin)Skin to save.

Store

#
public void Store(IWriter writer)
Serialization.
writer (IWriter)Writer object.
Store

WithCanvas

#
public Skin WithCanvas(CanvasSkin canvasSkin)
Replace the canvas properties of this skin.
canvasSkin (CanvasSkin)

WithFades

#
public Skin WithFades(Fades fades)
Replace the fades properties of this skin.
fades (Fades)

WithGrips

#
public Skin WithGrips(GripsSkin gripsSkin)
Replace the grip properties of this skin.
gripsSkin (GripsSkin)

WithIcons

#
public Skin WithIcons(IconsSkin iconsSkin)
Replace the icon properties of this skin.
iconsSkin (IconsSkin)

WithMessages

#
public Skin WithMessages(MessagingSkin messagingSkin)
Replace the messaging properties of this skin.
messagingSkin (MessagingSkin)

WithShades

#
public Skin WithShades(Shades shades)
Replace the shades properties of this skin.
shades (Shades)

WithShape

#
public Skin WithShape(Shape shape)
Replace the shape properties of this skin.
shape (Shape)

WithWires

#
public Skin WithWires(WiresSkin wiresSkin)
Replace the wire properties of this skin.
wiresSkin (WiresSkin)