Skip to main content

Theme Class

Namespace: GHIElectronics.TinyCLR.UI · Assembly: GHIElectronics.TinyCLR.UI

Central palette for TinyCLR.UI. Brushes are shared instances; change WindowBackground etc. then replace the corresponding brush field if you need live updates.

public static class Theme

Properties

WindowBackground

public static Color WindowBackground { get; set; }

No description available.

ControlSurface

public static Color ControlSurface { get; set; }

No description available.

TextBoxFill

public static Color TextBoxFill { get; set; }

No description available.

TextPrimary

public static Color TextPrimary { get; set; }

No description available.

Border

public static Color Border { get; set; }

Legacy alias for RadiusBorder. Will be removed. (inherited)

FocusRing

public static Color FocusRing { get; set; }

No description available.

SelectionHighlight

public static Color SelectionHighlight { get; set; }

No description available.

DefaultAlpha

public static ushort DefaultAlpha { get; set; }

Default Scale9Image alpha for surface-rendered controls (Button, CheckBox, RadioButton, ProgressBar, Dropdown, Slider). ~78% opacity.

DefaultRadiusBorder

public static int DefaultRadiusBorder { get; set; }

Default corner radius (in pixels) for Scale9Image-rendered surfaces.

Methods

SolidColorBrush( Colors.White)

public static readonly SolidColorBrush WindowBackgroundBrush = new SolidColorBrush(Colors.White)

No description available.

ParameterTypeDescription
Colors.White``

Returns SolidColorBrush WindowBackgroundBrush = new

SolidColorBrush( Colors.LightGray)

public static readonly SolidColorBrush ControlSurfaceBrush = new SolidColorBrush(Colors.LightGray)

No description available.

ParameterTypeDescription
Colors.LightGray``

Returns SolidColorBrush ControlSurfaceBrush = new

SolidColorBrush( Colors.White)

public static readonly SolidColorBrush TextBoxFillBrush = new SolidColorBrush(Colors.White)

No description available.

ParameterTypeDescription
Colors.White``

Returns SolidColorBrush TextBoxFillBrush = new

SolidColorBrush( Colors.Black)

public static readonly SolidColorBrush TextPrimaryBrush = new SolidColorBrush(Colors.Black)

No description available.

ParameterTypeDescription
Colors.Black``

Returns SolidColorBrush TextPrimaryBrush = new

SolidColorBrush( Colors.Teal)

public static readonly SolidColorBrush SelectionBrush = new SolidColorBrush(Colors.Teal)

No description available.

ParameterTypeDescription
Colors.Teal``

Returns SolidColorBrush SelectionBrush = new

RefreshBrushesFromColors()

public static void RefreshBrushesFromColors()

Call after mutating color fields if you need brushes to match.