Class ConsolePalette
- Namespace
- McServerLauncher.ViewModels
- Assembly
- McServerLauncher.dll
The console colours, as something Avalonia can draw with.
public static class ConsolePalette
- Inheritance
-
ConsolePalette
- Inherited Members
Remarks
The counterpart of ConsoleColors, split from it exactly as
NotificationBrushes is split from NotificationPalette: the strings are a setting and
belong somewhere that knows nothing about a UI framework, the conversion belongs somewhere a UI
can reach.
Methods
All(NotificationSettings?, string?, string?)
Every kind with its brush, for painting the filter switches to match the lines.
public static IReadOnlyDictionary<ConsoleLineKind, IBrush> All(NotificationSettings? levels, string? chat, string? players)
Parameters
levelsNotificationSettingschatstringplayersstring
Returns
- IReadOnlyDictionary<ConsoleLineKind, IBrush>
BrushFor(ConsoleLineKind, NotificationSettings?, string?, string?)
The brush a kind is drawn in. Never null, never throws.
public static IBrush BrushFor(ConsoleLineKind kind, NotificationSettings? levels, string? chat, string? players)
Parameters
kindConsoleLineKindlevelsNotificationSettingschatstringplayersstring
Returns
- IBrush
Remarks
The hex has already been vetted for shape, but the framework is the last word on whether it can be drawn — and this runs while painting a line that might be reporting a crash.