Skin
ReferencesRepresents a collection of immutable UI skinning settings.
Constructors
Skin
#public Skin(Shape shape, Shades shades, GripsSkin gripsSkin, WiresSkin wiresSkin, MessagingSkin messagingSkin, CanvasSkin canvasSkin, Fades fades = null, IconsSkin iconsSkin = null)
Skin constructor.
Parameters:
| shape (Shape) | |
| shades (Shades) | |
| gripsSkin (GripsSkin) | |
| wiresSkin (WiresSkin) | |
| messagingSkin (MessagingSkin) | |
| canvasSkin (CanvasSkin) | |
| fades (Fades = null) | |
| iconsSkin (IconsSkin = null) |
Fields
Properties
Current
#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.
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
#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.
Methods
Interpolate
#Interpolate between two skins.
LoadFromFile
#Load a skin from a file.
Parameters:
| file (string) | File to load from. |
Returns: Loaded skin.
SaveToFile
#Save a skin to a file.