diff --git a/MinecraftClient/MinecraftClient.csproj b/MinecraftClient/MinecraftClient.csproj index e8e9206b..d9314d9d 100644 --- a/MinecraftClient/MinecraftClient.csproj +++ b/MinecraftClient/MinecraftClient.csproj @@ -35,12 +35,12 @@ - + - + @@ -48,7 +48,7 @@ - + NU1701 diff --git a/MinecraftClient/Tui/ContainerViewBase.cs b/MinecraftClient/Tui/ContainerViewBase.cs index 2a5b7668..92787f46 100644 --- a/MinecraftClient/Tui/ContainerViewBase.cs +++ b/MinecraftClient/Tui/ContainerViewBase.cs @@ -184,14 +184,7 @@ namespace MinecraftClient.Tui ItemsSource = chatLines, Focusable = false, ItemTemplate = new FuncDataTemplate((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 { diff --git a/MinecraftClient/Tui/MainTuiView.cs b/MinecraftClient/Tui/MainTuiView.cs index bee0bc84..7c34d17c 100644 --- a/MinecraftClient/Tui/MainTuiView.cs +++ b/MinecraftClient/Tui/MainTuiView.cs @@ -26,9 +26,7 @@ namespace MinecraftClient.Tui if (configured > 0) return configured; - bool isArm = RuntimeInformation.ProcessArchitecture - is Architecture.Arm or Architecture.Arm64; - return isArm ? 500 : 3000; + return 3000; } private readonly ObservableCollection _logLines = new();