Table of Contents

Class ChatColors

Namespace
EchoHub.Client.UI
Assembly
EchoHub.Client.dll

Shared color attributes for chat rendering (timestamps, system messages).

public static class ChatColors
Inheritance
ChatColors
Inherited Members

Fields

AudioAttr

public static readonly Attribute AudioAttr

Field Value

Attribute

EmbedBorderAttr

public static readonly Attribute EmbedBorderAttr

Field Value

Attribute

EmbedDescAttr

public static readonly Attribute EmbedDescAttr

Field Value

Attribute

EmbedTitleAttr

public static readonly Attribute EmbedTitleAttr

Field Value

Attribute

EmbedUrlAttr

public static readonly Attribute EmbedUrlAttr

Field Value

Attribute

FileAttr

public static readonly Attribute FileAttr

Field Value

Attribute

MentionHighlightAttr

public static readonly Attribute MentionHighlightAttr

Field Value

Attribute

MentionTextAttr

public static readonly Attribute MentionTextAttr

Field Value

Attribute

SystemAttr

public static readonly Attribute SystemAttr

Field Value

Attribute

TimestampAttr

public static readonly Attribute TimestampAttr

Field Value

Attribute

Methods

SplitMentions(string, Attribute?)

Split text around @mentions, giving each @word the MentionTextAttr accent color. Non-mention text uses the provided default color.

public static List<ChatSegment> SplitMentions(string text, Attribute? defaultColor = null)

Parameters

text string
defaultColor Attribute?

Returns

List<ChatSegment>