From 026a0a059118ab5d5f07684ed0dfb58626c4a884 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Sat, 25 Jan 2025 23:56:35 +0530 Subject: chore: UI improvements --- Program.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Program.cs') diff --git a/Program.cs b/Program.cs index 79b0b5d..5cd262a 100644 --- a/Program.cs +++ b/Program.cs @@ -23,6 +23,12 @@ class Program if(args[0] == "--show") { + string green = "\x1b[0;32m"; + string yellow = "\x1b[1;33m"; + string red = "\x1b[0;31m"; + string blue = "\x1b[0;34m"; + string reset = "\x1b[0m"; + Dictionary data = new Dictionary(); var date = WatchLog.GetDate(); @@ -40,11 +46,11 @@ class Program data[key] = value; } } - Console.WriteLine("{0,-30} {1,-30}", "App", "Time"); - Console.WriteLine(new string('-', 60)); + Console.WriteLine($"{yellow}{"App",-30}{"Time",30}{reset}"); + Console.WriteLine($"{red}{new string('-', 60)}{reset}"); foreach (var entry in data) { - Console.WriteLine("{0,-30} {1,-30}", entry.Key, entry.Value); + Console.WriteLine($"{blue}{entry.Key,-30}{reset}{green}{entry.Value,30}{reset}"); } } } -- cgit v1.1