Skip to content

TextBoxTheme ​

Namespace: Hex1b.Theming

Assembly: Hex1b.dll

Theme elements for TextBox widgets.

csharp
public static class TextBoxTheme

Inheritance ​

Object → TextBoxTheme

Fields ​

BackgroundColor ​

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> BackgroundColor

CursorBackgroundColor ​

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> CursorBackgroundColor

CursorForegroundColor ​

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> CursorForegroundColor

FillBackgroundColor ​

Background color used to delineate the text area when the textbox is unfocused.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> FillBackgroundColor

FocusedFillBackgroundColor ​

Background color used when the text box has focus. Slightly lighter than to indicate active input.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> FocusedFillBackgroundColor

FocusedForegroundColor ​

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> FocusedForegroundColor

ForegroundColor ​

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> ForegroundColor

PredictionBackgroundColor ​

Background color of the inline prediction text. Defaults to , which the renderer treats as "follow the textbox field fill background" so the suggestion blends into the input surface. Set to any concrete color to draw the prediction on a contrasting band instead.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> PredictionBackgroundColor

PredictionForegroundColor ​

Foreground color of the inline prediction (suggestion) text rendered to the right of the cursor. Defaults to — a monochrome mid-gray that stays clearly visible against typical field backgrounds while remaining distinct from regular typed text.

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> PredictionForegroundColor

SelectionBackgroundColor ​

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> SelectionBackgroundColor

SelectionForegroundColor ​

Returns: Hex1bThemeElement<Hex1bColor>

csharp
public static readonly Hex1bThemeElement<Hex1bColor> SelectionForegroundColor

Remarks ​

As of the prediction-input refresh, the TextBox no longer renders the classic […] bookends. The fill/background-based rendering that used to be opt-in via UseFillMode is now the only style. If you need a bracketed look, render brackets in surrounding widgets.

Released under the MIT License.