Class SociallyDistantVisualStyle
Socially Distant's default user interface skin.
Implements
Inherited Members
Namespace: SociallyDistant.Core.UI.VisualStyles
Assembly: SociallyDistant.Framework.dll
Syntax
public class SociallyDistantVisualStyle : IVisualStyle, IFontFamilyProvider, IGetThemeProperties<Button.LayoutProperties>, IGetThemeProperties<Toggle.LayoutProperties>, IGetThemeProperties<Slider.LayoutProperties>, IGetThemeProperties<ProgressBar.LayoutrProperties>, IGetThemeProperties<ScrollBar.LayoutProperties>, IGetThemeProperties<ListItem.LayoutProperties>, IGetThemeProperties<InputField.LayoutProperties>, IGetThemeProperties<TextWidget.ThemeProperties>, IGetThemeProperties<Popover.PopoverThemeProperties>, IVisualRenderer<Button.VisualState>, IVisualRenderer<Toggle.VisualState>, IVisualRenderer<Slider.VisualState>, IVisualRenderer<ProgressBar.VisualState>, IVisualRenderer<ScrollBar.VisualState>, IVisualRenderer<DropdownItemVisualState>, IVisualRenderer<DropdownOverlayVisualState>, IVisualRenderer<ListItem.VisualState>, IVisualRenderer<InputField.VisualState>, IVisualRenderer<Popover.PopoverVisualState>, IWidgetBackgroundRenderer, IVisualRenderer<Widget.BackgroundStyleProperties>, IGetThemeProperties<DockLayoutProperties>, IGetThemeProperties<StatusBarLayoutProperties>, IGetThemeProperties<FormField.LayoutProperties>, IGetThemeProperties<Emblem.LayoutProperties>, IVisualRenderer<IDockIconView, Button.VisualState>, IVisualRenderer<DockVisualState>, IVisualRenderer<StatusBarVisualState>, IVisualRenderer<DecorativeBlock.VisualState>, IVisualRenderer<FormField.VisualState>, IVisualRenderer<BlurredOverlay.VisualState>, IVisualRenderer<WindowCaptionButton.VisualState>, IVisualRenderer<Emblem.VisualState>, IVisualRenderer<Window.VisualState>, IGetTextColor, IChatMessageRenderer, IVisualRenderer<IChatMessageBox, ChatMessageVisualState>, IGetThemeProperties<ChatMessageThemeProperties>, IGetThemeProperties<Window.ThemeProperties>, IGetThemeProperties<CompletionListWidget.ThemeProperties>, IVisualRenderer<CompletionListWidget.VisualState>, IGetThemeProperties<ConsoleThemeProperties>
Constructors
SociallyDistantVisualStyle(IGameContext)
Creates a new instance of the SociallyDistantVisualStyle class.
Declaration
public SociallyDistantVisualStyle(IGameContext game)
Parameters
Type | Name | Description |
---|---|---|
IGameContext | game | Socially Distant's game context. |
Properties
DropdownButtonPadding
Declaration
public Padding DropdownButtonPadding { get; }
Property Value
Type | Description |
---|---|
Padding |
EmojiFont
Declaration
public Font? EmojiFont { get; }
Property Value
Type | Description |
---|---|
Font |
IconFont
Declaration
public Font IconFont { get; }
Property Value
Type | Description |
---|---|
Font |
SelectionColor
Declaration
public Color SelectionColor { get; }
Property Value
Type | Description |
---|---|
Color |
TextSelectionBackground
Declaration
public Color TextSelectionBackground { get; }
Property Value
Type | Description |
---|---|
Color |
TextSelectionForeground
Declaration
public Color TextSelectionForeground { get; }
Property Value
Type | Description |
---|---|
Color |
Methods
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, Button.VisualState state)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
Button.VisualState | state |
Draw(Widget, GeometryHelper, in LayoutRect, DropdownItemVisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, DropdownItemVisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
DropdownItemVisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, DropdownOverlayVisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, DropdownOverlayVisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
DropdownOverlayVisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, InputField.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
InputField.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, ListItem.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
ListItem.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, PopoverVisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, Popover.PopoverVisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
Popover.PopoverVisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, ProgressBar.VisualState state)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
ProgressBar.VisualState | state |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, ScrollBar.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
ScrollBar.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, Slider.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
Slider.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, Toggle.VisualState state)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
Toggle.VisualState | state |
Draw(Widget, GeometryHelper, in LayoutRect, BackgroundStyleProperties)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, Widget.BackgroundStyleProperties properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
Widget.BackgroundStyleProperties | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, Window.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
Window.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, WindowCaptionButton.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
WindowCaptionButton.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, DecorativeBlock.VisualState state)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
DecorativeBlock.VisualState | state |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, Emblem.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
Emblem.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, CompletionListWidget.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
CompletionListWidget.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, FormField.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
FormField.VisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, DockVisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, DockVisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
DockVisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, StatusBarVisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, StatusBarVisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
StatusBarVisualState | properties | The visual properties associated with the widget |
Draw(Widget, GeometryHelper, in LayoutRect, VisualState)
Draws a widget using the specified visual properties.
Declaration
public void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, BlurredOverlay.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
BlurredOverlay.VisualState | properties | The visual properties associated with the widget |
Draw(IChatMessageBox, GeometryHelper, in LayoutRect, ChatMessageVisualState)
Declaration
public void Draw(IChatMessageBox widget, GeometryHelper geometry, in LayoutRect contentRect, ChatMessageVisualState properties)
Parameters
Type | Name | Description |
---|---|---|
IChatMessageBox | widget | |
GeometryHelper | geometry | |
LayoutRect | contentRect | |
ChatMessageVisualState | properties |
Draw(IDockIconView, GeometryHelper, in LayoutRect, VisualState)
Declaration
public void Draw(IDockIconView widget, GeometryHelper geometry, in LayoutRect contentRect, Button.VisualState properties)
Parameters
Type | Name | Description |
---|---|---|
IDockIconView | widget | |
GeometryHelper | geometry | |
LayoutRect | contentRect | |
Button.VisualState | properties |
GetFont(PresetFontFamily)
Declaration
public IFontFamily GetFont(PresetFontFamily familyPresetFont)
Parameters
Type | Name | Description |
---|---|---|
PresetFontFamily | familyPresetFont |
Returns
Type | Description |
---|---|
IFontFamily |
GetTextColor(Widget?)
Declaration
public Color GetTextColor(Widget? widget = null)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget |
Returns
Type | Description |
---|---|
Color |
GetTextColor(Widget, ref Color)
Declaration
public bool GetTextColor(Widget widget, ref Color color)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | |
Color | color |
Returns
Type | Description |
---|---|
bool |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref Button.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
Button.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref InputField.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
InputField.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref ListItem.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
ListItem.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref PopoverThemeProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref Popover.PopoverThemeProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
Popover.PopoverThemeProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutrProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref ProgressBar.LayoutrProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
ProgressBar.LayoutrProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref ScrollBar.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
ScrollBar.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref Slider.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
Slider.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref ThemeProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref TextWidget.ThemeProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
TextWidget.ThemeProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref Toggle.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
Toggle.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref ThemeProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref Window.ThemeProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
Window.ThemeProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref Emblem.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
Emblem.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref ConsoleThemeProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref ConsoleThemeProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
ConsoleThemeProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref ThemeProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref CompletionListWidget.ThemeProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
CompletionListWidget.ThemeProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref LayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref FormField.LayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
FormField.LayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref ChatMessageThemeProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref ChatMessageThemeProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
ChatMessageThemeProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref DockLayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref DockLayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
DockLayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |
GetThemeProperties(ref StatusBarLayoutProperties)
Retrieves layout properties and stores them into the given layout properties reference.
Declaration
public bool GetThemeProperties(ref StatusBarLayoutProperties layoutProperties)
Parameters
Type | Name | Description |
---|---|---|
StatusBarLayoutProperties | layoutProperties | The destination to which layout properties should be stored. |
Returns
Type | Description |
---|---|
bool | True if the layout properties have changed, false otherwise. If true, widgets needing these properties will invalidate their layout. |