From e8ff5fed089a924e59c126b2cfcae48f7c8855af Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:52:39 +0100 Subject: [PATCH] Improve log colors --- HyperbolicDownloader/LogCommands.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HyperbolicDownloader/LogCommands.cs b/HyperbolicDownloader/LogCommands.cs index 080b3b5..2e51b28 100644 --- a/HyperbolicDownloader/LogCommands.cs +++ b/HyperbolicDownloader/LogCommands.cs @@ -15,6 +15,7 @@ internal class LogCommands this.debug = debug; Console.Clear(); + Console.BackgroundColor = ConsoleColor.Black; if (debug) { @@ -41,6 +42,7 @@ internal class LogCommands ApiManager.OnNotificationMessageRecived -= OnNotificationMessageRecived; Console.Clear(); + Console.ResetColor(); Console.WriteLine("Log closed"); } @@ -53,7 +55,7 @@ internal class LogCommands { if (e.Message?.Contains('>') == true && IPAddress.TryParse(e.Message[..e.Message.IndexOf('>')].Trim(), out IPAddress? ipAddress)) { - ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.DarkGray); + ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.Gray); if (e.NotificationMessageType == NotificationMessageType.Debug) { @@ -86,7 +88,7 @@ internal class LogCommands } else { - ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.DarkGray); + ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.Gray); if (e.NotificationMessageType == NotificationMessageType.Debug) {