mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Minecraft 1.16+ servers can send custom hex colors in JSON text
components ("color": "#RRGGBB"). MCC's ChatParser.Color2tag() only
recognized the 16 named colors, silently dropping hex values and
leaving gradient/custom-colored chat as uncolored plain text.
- ChatParser: recognize hex color values and emit internal §#rrggbb
encoding; extend ColorCodeRegex to match the new format
- ClassicConsoleBackend: resolve §#rrggbb to ANSI escape codes via
ColorHelper before passing to ConsoleInteractive (adapts to the
configured ConsoleColorMode: 24-bit, 8-bit, 4-bit, or disable)
- McColorParser (TUI): parse §#rrggbb into exact SolidColorBrush
for full RGB fidelity in Avalonia
- ChatBot.GetVerbatim(): skip the full 8-char §#rrggbb sequence
instead of only 2 chars, preventing hex digits from leaking into
stripped text
Made-with: Cursor
|
||
|---|---|---|
| .. | ||
| BrewingStandView.cs | ||
| ContainerViewBase.cs | ||
| ContainerViewModel.cs | ||
| CraftingView.cs | ||
| EnchantingTableView.cs | ||
| FurnaceView.cs | ||
| GridContainerView.cs | ||
| GrindstoneView.cs | ||
| HopperView.cs | ||
| IconGridBuilder.cs | ||
| InventoryApp.cs | ||
| InventoryMainView.cs | ||
| InventoryTuiHost.cs | ||
| InventoryViewModel.cs | ||
| MainTuiView.cs | ||
| MapOverlay.cs | ||
| MccBannerPanelBuilder.cs | ||
| McColorParser.cs | ||
| MccTuiApp.cs | ||
| MinimapBlockColors.json | ||
| MinimapColorMap.cs | ||
| MinimapControl.cs | ||
| MinimapEntityCategories.json | ||
| MinimapEntityClassifier.cs | ||
| ServerStatusPanelBuilder.cs | ||
| SlotViewModel.cs | ||
| TabListOverlay.cs | ||
| TuiConsoleBackend.cs | ||
| TuiTooltipService.cs | ||