Skip to content

CheckboxTheme

Namespace: Hex1b.Theming

Assembly: Hex1b.dll

Theme elements for CheckboxWidget.

csharp
public static class CheckboxTheme

Inheritance

ObjectCheckboxTheme

Fields

BackgroundColor

Background colour for the trailing label. Defaults to so the label sits on the surrounding surface without an extra band — the chip is intentionally limited to the box glyph itself.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> BackgroundColor

BoxBackgroundColor

Resting chip background painted behind the box glyph (the " ▢ " / " ▣ " / " ▤ " cells). Defaults to the same rgb(60,60,60) as so checkboxes and buttons share a coherent "solid" feel. Set to to disable the chip and render the box glyph against the surrounding surface.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> BoxBackgroundColor

CheckedBox

The checkbox glyph (padded to 3 display cells) used when the checkbox is checked. Default is " ▣ " — a 1-cell U+25A3 "white square containing black small square" framed by single-cell padding so it fills a 3-cell chip.

Returns: Hex1bThemeElement<String>

csharp
public static readonly Hex1bThemeElement<string> CheckedBox

CheckMarkColor

Foreground colour for the box glyph when the checkbox is checked (resting state — focus / hover overrides win). Defaults to .

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> CheckMarkColor

FocusedBackgroundColor

Background for the entire control (box + label) when the checkbox is focused.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> FocusedBackgroundColor

FocusedForegroundColor

Foreground for the entire control (box + label) when the checkbox is focused.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> FocusedForegroundColor

ForegroundColor

Foreground colour for the trailing label and for the box glyph when the state-specific colour ( / ) is left at .

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> ForegroundColor

HoveredBackgroundColor

Background for the entire control (box + label) when the checkbox is hovered (mouse over) but not focused. Mirrors .

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> HoveredBackgroundColor

HoveredForegroundColor

Foreground for the entire control (box + label) when the checkbox is hovered (mouse over) but not focused. Mirrors .

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> HoveredForegroundColor

IndeterminateBox

The checkbox glyph (padded to 3 display cells) used when the checkbox is in the indeterminate state. Default is " ▤ " — a 1-cell U+25A4 "square with horizontal fill" framed by single-cell padding so it fills a 3-cell chip.

Returns: Hex1bThemeElement<String>

csharp
public static readonly Hex1bThemeElement<string> IndeterminateBox

IndeterminateColor

Foreground colour for the box glyph when the checkbox is in the indeterminate state (resting state — focus / hover overrides win). Defaults to .

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> IndeterminateColor

UncheckedBox

The checkbox glyph (padded to 3 display cells) used when the checkbox is unchecked. Default is " ▢ " — a 1-cell U+25A2 "white square with rounded corners" glyph, intentionally chosen as the matched-pair partner of (U+25A3) so both states share consistent stroke metrics across most monospace fonts. Framed by single-cell padding so it fills a 3-cell chip.

Returns: Hex1bThemeElement<String>

csharp
public static readonly Hex1bThemeElement<string> UncheckedBox

Remarks

As of the styling refresh, the box renders as a single Unicode glyph surrounded by a "chip" background (defaults to a grey just lighter than the input-field family) so the control reads as solid rather than the older [x] / [ ] bracket pair. The trailing label still renders against the global background.

Released under the MIT License.