GH_Theme

References
public class GH_Theme : GH_ISerializable

Constructors

GH_Theme

#
public GH_Theme()
Create a new default theme.

GH_Theme

#
public GH_Theme(GH_Theme other)
Make a duplicate of another theme.
other (GH_Theme)Theme to copy.

Properties

BackGround

#
public GH_BackgroundSettings BackGround { get; }
Gets the theme background settings.

DefaultTheme

#
public static GH_Theme DefaultTheme { get; }

Objects

#
public GH_ObjectSettings Objects { get; }
Gets the theme objects and ZUI settings.

Page

#
public GH_PageSettings Page { get; }
Gets the theme page and grid settings.

Palettes

#
public GH_PaletteSettings Palettes { get; }
Gets the theme palette settings.

Wires

#
public GH_WireSettings Wires { get; }
Gets the theme wire settings.

Methods

LoadTheme

#
public void LoadTheme()
Instantiate all palette and gui defaults. This function reads the colour values out of grasshopper_gui.xml settings database if it exists.

Read

#
public bool Read(GH_IReader reader)
reader (GH_IReader)
Read

SaveTheme

#
public void SaveTheme()
Store all palette and gui defaults. This function writes the colour values out to grasshopper_gui.xml settings database.

Write

#
public bool Write(GH_IWriter writer)
writer (GH_IWriter)
Write