Class Theme
- Namespace
- Forma
- Assembly
- Forma.dll
A small, deterministic theme used when an application does not provide custom drawing.
public sealed class Theme
- Inheritance
-
Theme
- Inherited Members
Constructors
Theme()
public Theme()
Properties
AccentColor
public Color AccentColor { get; set; }
Property Value
- Color
BackgroundColor
public Color BackgroundColor { get; set; }
Property Value
- Color
BorderWidth
public float BorderWidth { get; set; }
Property Value
ConnectionActivityColor
Godot-style GraphEdit activity tint applied to active connection lines.
public Color ConnectionActivityColor { get; set; }
Property Value
- Color
DisabledTextColor
public Color DisabledTextColor { get; set; }
Property Value
- Color
FocusColor
public Color FocusColor { get; set; }
Property Value
- Color
FontFamily
Inherited default font family used by text controls without a local font override.
public UIFontFamily FontFamily { get; set; }
Property Value
FontHinting
Inherited dynamic glyph hinting policy.
public UIFontHinting FontHinting { get; set; }
Property Value
FontOpenTypeFeatures
Inherited OpenType feature defaults used unless a control supplies explicit features.
public IReadOnlyList<UIFontOpenTypeFeature> FontOpenTypeFeatures { get; set; }
Property Value
FontSize
Inherited logical font size. Zero keeps the selected family's primary font size.
public float FontSize { get; set; }
Property Value
HoverColor
public Color HoverColor { get; set; }
Property Value
- Color
PanelBorderColor
public Color PanelBorderColor { get; set; }
Property Value
- Color
PanelColor
public Color PanelColor { get; set; }
Property Value
- Color
Parent
Optional parent. Unspecified colors, constants and style items resolve through it.
public Theme Parent { get; set; }
Property Value
PressedColor
public Color PressedColor { get; set; }
Property Value
- Color
Separation
public float Separation { get; set; }
Property Value
TextColor
public Color TextColor { get; set; }
Property Value
- Color
Version
public long Version { get; }
Property Value
Methods
GetControlTemplate(Type)
public ControlTemplate GetControlTemplate(Type controlType)
Parameters
controlTypeType
Returns
GetIcon(string, string)
Gets a typed or shared icon, including parent-theme inheritance.
public ThemeIcon? GetIcon(string itemName, string typeName = null)
Parameters
Returns
GetStyleBox(string, string)
Gets a style item, first considering the requested control type then the shared item.
public StyleBox GetStyleBox(string itemName, string typeName = null)
Parameters
Returns
RemoveControlTemplate(Type)
public bool RemoveControlTemplate(Type controlType)
Parameters
controlTypeType
Returns
RemoveIcon(string, string)
Removes a local icon entry so parent and default themes become visible again.
public void RemoveIcon(string itemName, string typeName = null)
Parameters
SetControlTemplate(Type, ControlTemplate)
public void SetControlTemplate(Type controlType, ControlTemplate template)
Parameters
controlTypeTypetemplateControlTemplate
SetControlTemplate<TControl>(ControlTemplate)
public void SetControlTemplate<TControl>(ControlTemplate template) where TControl : TemplatedControl
Parameters
templateControlTemplate
Type Parameters
TControl
SetIcon(string, ThemeIcon, string)
Assigns a non-owning icon value, optionally scoped to a control type name.
public void SetIcon(string itemName, ThemeIcon icon, string typeName = null)
Parameters
SetStyleBox(string, StyleBox, string)
Assigns a style item, optionally scoped to a control type name.
public void SetStyleBox(string itemName, StyleBox styleBox, string typeName = null)
Parameters
SuppressIcon(string, string)
Suppresses an inherited icon without supplying a replacement.
public void SuppressIcon(string itemName, string typeName = null)
Parameters
Events
Changed
public event EventHandler Changed