Files
Hue 607217b314 docs: Update documentation for 145 files
Generated by AurionDocs
Job ID: 934f8c39-8082-4942-8d17-72ed8f5f8d50
Source commit: 40aea9a
2026-07-23 11:44:20 +02:00

971 B

WelcomeBanner

File: src/EchoHub.Client/UI/Chat/WelcomeBanner.cs
Kind: class

internal static class WelcomeBanner

The WelcomeBanner class provides the MOTD-style splash shown in the chat pane when no channel is selected. It renders a gold-gradient ASCII logo by choosing between BigLogo (for wider viewports) and SmallLogo (for narrow panes), centers the logo within the given width, and appends a version tagline and quick-use hints. The static Build method returns a list of ChatLine objects that the UI can render to display the branded welcome banner for a given width and version string.

The banner is designed to be self-contained: it composes ASCII art, a vertical color gradient (Gradient), and a small set of hints (Hints) into a sequence of renderable lines. This keeps the welcome experience consistent across sessions and isolates branding concerns from the main channel rendering logic.