Docs / UI

Glossary: DefaultSettings

The members of DefaultSettings, in alphabetical order.

Color legend dependency property

DefaultSettings (namespace BorrowedTorch.UI.Settings) is a static class of public fields that hold framework-wide defaults. Set them at start, before you create elements. Most are read when the framework defaults of a style type are built, which happens once, the first time that style type is used (normally when the first element of the type is created, or when you touch X.GeneralStyle); changing them later doesn’t reach that type. The ones marked “on use” are read each time they are needed.

A static class. The styles page shows it in context.

Fields

DefaultBorderColor 🠆

Color · Static. The frame color (ForegroundColor) default of BorderStyle. Default: new(80, 80, 80, 255).

DefaultBorderThickness 🠆

int · Static. The Thickness default of BorderStyle, in units. Default: 1.

DefaultButtonHoverColor 🠆

Color · Static. The HoverColor default of ButtonStyle. Default: new(200, 220, 240, 255).

DefaultButtonNormalColor 🠆

Color · Static. The NormalColor default of ButtonStyle. Default: new(225, 225, 230, 255).

DefaultButtonPressedColor 🠆

Color · Static. The PressedColor default of ButtonStyle. Default: new(160, 190, 225, 255).

DefaultButtonToggledColor 🠆

Color · Static. The ToggledColor default of ButtonStyle. Default: new(86, 156, 214, 255).

DefaultCheckBoxCheckedColor 🠆

Color · Static. The CheckedSolidColor default of CheckBoxStyle. Default: new(86, 156, 214, 255).

DefaultCheckBoxUncheckedColor 🠆

Color · Static. The UncheckedSolidColor default of CheckBoxStyle. Default: new(150, 150, 160, 255).

DefaultComboBoxBackgroundColor 🠆

Color · Static. The BackgroundColor default of ComboBoxStyle. Default: Color.White.

DefaultComboBoxToggleButtonWidth 🠆

int · Static. The width of the toggle button in the default ToggleButtonStyle of ComboBoxStyle, in units. Default: 24.

DefaultContextMenuBackgroundColor 🠆

Color · Static. The background color of ContextMenuStyle’s default border. Default: Color.White.

DefaultContextMenuBorderColor 🠆

Color · Static. The border color of ContextMenuStyle’s default border. Default: new(80, 80, 80, 255).

DefaultContextMenuHighlightColor 🠆

Color · Static. The color of the hovered and selected rows of ContextMenuStyle’s default list style. Default: new(200, 220, 240, 255).

DefaultContextMenuIconColor 🠆

Color · Static. The color of the check and expand icons of ContextMenuStyle. Default: new(80, 80, 80, 255).

DefaultDoubleClickIntervalMs 🠆

int · Static. On use. The DoubleClickIntervalMs default of every element. Default: 300.

DefaultFontSize 🠆

int · Static. The FontSize default of LabelStyle and RichTextBoxStyle. Default: 14.

DefaultGridLayoutColor 🠆

Color · Static. The LayoutColor of every Grid, read when a grid is created. Default: new(255, 0, 0, 255).

DefaultListBoxAlternativeItemColor 🠆

Color · Static. The AlternativeItemColor default of ListBoxStyle, shown with UseDualColors. Default: new(240, 240, 245, 255).

DefaultListBoxBackgroundColor 🠆

Color · Static. The BackgroundColor default of ListBoxStyle. Default: Color.White.

DefaultListBoxHoverItemColor 🠆

Color · Static. The HoverItemColor default of ListBoxStyle. Default: new(220, 232, 245, 255).

DefaultListBoxItemHeight 🠆

int · Static. The ItemHeight default of ListBoxStyle: the row height of a Fixed list, in units. Default: 24.

DefaultListBoxPressedItemColor 🠆

Color · Static. The PressedItemColor default of ListBoxStyle. Default: new(160, 190, 225, 255).

DefaultListBoxSelectedItemColor 🠆

Color · Static. The SelectedItemColor default of ListBoxStyle. Default: new(190, 215, 240, 255).

DefaultMaxDepth 🠆

float · Static. The MaxDepth default of ViewPortStyle. Default: 1.

DefaultMinDepth 🠆

float · Static. The MinDepth default of ViewPortStyle. Default: 0.

DefaultProgressBarBackgroundColor 🠆

Color · Static. The track color (BackgroundColor) default of ProgressBarStyle. Default: new(225, 225, 230, 255).

DefaultProgressBarColor 🠆

Color · Static. The bar color (ForegroundColor) default of ProgressBarStyle. Default: new(86, 156, 214, 255).

DefaultResizeAreaHalfWidth 🠆

int · Static. On use. The ResizeAreaHalfWidth default of every element: half the width of the grips of a resizable element, in units. Default: 3.

DefaultResizeContourColor 🠆

Color · Static. On use. The ResizeContourColor default of every element. Default: new(50, 50, 50, 190).

DefaultResizeContourHalfWidth 🠆

int · Static. On use. Half the width of the contour drawn while an element is resized, in units. Default: 1.

DefaultScrollBarsButtonsColor 🠆

Color · Static. The color of the end buttons in the default ScrollBarsStyle of ScrollableContainerStyle. Default: new(190, 190, 200, 255).

DefaultScrollBarsThickness 🠆

int · Static. The ScrollBarsThickness default of ScrollableContainerStyle and RichTextBoxStyle, in units. Default: 12.

DefaultScrollBarsThumbColor 🠆

Color · Static. The thumb color in the default ScrollBarsStyle of ScrollableContainerStyle. Default: new(150, 150, 160, 255).

DefaultScrollBarsTrackColor 🠆

Color · Static. The color of both track halves in the default ScrollBarsStyle of ScrollableContainerStyle. Default: new(230, 230, 235, 255).

DefaultSeparatorColor 🠆

Color · Static. The BackgroundColor default of every Separator, read when a separator is created. Default: new(150, 150, 160, 255).

DefaultSliderButtonsColor 🠆

Color · Static. The ButtonsSolidColor default of SliderStyle. Default: new(150, 150, 160, 255).

DefaultSliderLineDecreaseColor 🠆

Color · Static. The LineDecreaseSolidColor default of SliderStyle. Default: new(86, 156, 214, 255).

DefaultSliderLineIncreaseColor 🠆

Color · Static. The LineIncreaseSolidColor default of SliderStyle. Default: new(150, 150, 160, 255).

DefaultSliderThumbColor 🠆

Color · Static. The ThumbSolidColor default of SliderStyle. Default: new(80, 80, 80, 255).

DefaultSliderThumbMinSize 🠆

float · Static. The ThumbMinSize default of SliderStyle, in units. Default: 10.

DefaultSliderTickOffset 🠆

int · Static. The TickOffset default of SliderStyle, in units. Default: 2.

DefaultSliderTickPassedColor 🠆

Color · Static. The TickPassedColor default of SliderStyle. Default: new(86, 156, 214, 255).

DefaultSliderTickRemainingColor 🠆

Color · Static. The TickRemainingColor default of SliderStyle. Default: new(150, 150, 160, 255).

DefaultSliderTickSize 🠆

Point · Static. The TickSize default of SliderStyle, in units. Default: new(2, 2).

DefaultTextColor 🠆

Color · Static. The ForegroundColor default of LabelStyle and RichTextBoxStyle. Default: Color.Black.

DefaultTextCursorBlinkTimeMs 🠆

int · Static. How long the text cursor stays on and off, in milliseconds. Read when a text cursor starts blinking. Default: 500.

DefaultTextCursorColor 🠆

Color · Static. The TextCursorColor default of RichTextBoxStyle. Default: Color.Black.

DefaultTextCursorThickness 🠆

int · Static. The TextCursorThickness default of RichTextBoxStyle, in units. Default: 1.

DefaultTextSelectionColor 🠆

Color · Static. The TextSelectionColor default of RichTextBoxStyle. Default: Color.LightBlue.

DefaultTimeBeforeRepeatStartsMs 🠆

int · Static. On use. The TimeBeforeRepeatStartsMs default of every element. Default: 1000.

DefaultTimeBeforeShowToolTipMs 🠆

int · Static. The TimeBeforeShowMs default of ToolTipStyle. Default: 500.

DefaultTimeBetweenRepeatsMs 🠆

int · Static. On use. The TimeBetweenRepeatsMs default of every element. Default: 300.

DefaultToolTipBackgroundColor 🠆

Color · Static. The BackgroundColor default of ToolTipStyle. Default: new(255, 255, 225, 255).

DefaultToolTipMarginFromMouseCursor 🠆

Margin · Static. The MarginFromMouseCursor default of ToolTipStyle, in units. Default: (14, 14).

DefaultTreeViewSubItemsShift 🠆

Margin · Static. The SubItemsShift default of TreeViewStyle: the indent of each level, in units. Default: (16, 0).

DefaultWindowBackgroundColor 🠆

Color · Static. The background color of WindowStyle’s default border. Default: Color.Wheat.

DefaultWindowBorderColor 🠆

Color · Static. The border color of WindowStyle’s default border. Default: new(80, 80, 80, 255).

DefaultWindowBorderThickness 🠆

int · Static. The border thickness of WindowStyle’s default border. Default: 2.

DefaultWindowTitleBarColor 🠆

Color · Static. The background color of a window’s default title bar, read when the title bar is created. Default: Color.LightBlue.

DefaultWindowTitleThickness 🠆

int · Static. The height of a window’s default title bar (its close button is 4 units smaller). Read when a window is created, and for the close button when the title bar is measured. Default: 30.