Table of Contents

Class ChatColors

Namespace
EchoHub.Client.UI.Chat
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

ChannelRefAttr

public static readonly Attribute ChannelRefAttr

Field Value

Attribute

DateRuleAttr

Horizontal date-separator rules (── Wed, Jul 16 ──…).

public static readonly Attribute DateRuleAttr

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

RailAttr

The dim vertical rail (│) separating the nick column from message text.

public static readonly Attribute RailAttr

Field Value

Attribute

SystemAttr

public static readonly Attribute SystemAttr

Field Value

Attribute

TimestampAttr

public static readonly Attribute TimestampAttr

Field Value

Attribute

UnreadMarkerAttr

The irssi-style "new messages" unread marker rule.

public static readonly Attribute UnreadMarkerAttr

Field Value

Attribute

Methods

SplitMentions(string, Attribute?)

Split text around @mentions and #channels, giving each the appropriate accent color. Non-special text uses the provided default color.

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

Parameters

text string
defaultColor Attribute?

Returns

List<ChatSegment>