mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
refactor: Replace TextBlock creation with McColorParser for improved text rendering in chat display
This commit is contained in:
parent
a40188cb09
commit
b083336bf6
1 changed files with 1 additions and 8 deletions
|
|
@ -184,14 +184,7 @@ namespace MinecraftClient.Tui
|
|||
ItemsSource = chatLines,
|
||||
Focusable = false,
|
||||
ItemTemplate = new FuncDataTemplate<string>((s, _) =>
|
||||
new TextBlock
|
||||
{
|
||||
Text = s,
|
||||
Foreground = Brushes.Gray,
|
||||
Padding = new Thickness(0),
|
||||
Margin = new Thickness(0),
|
||||
TextWrapping = TextWrapping.Wrap,
|
||||
}),
|
||||
McColorParser.CreateColoredTextBlock(s ?? "", TextWrapping.Wrap)),
|
||||
};
|
||||
_chatScrollViewer = new ScrollViewer
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue