diff --git a/LogEntry.cs b/LogEntry.cs index aa9232a..43bc55f 100644 --- a/LogEntry.cs +++ b/LogEntry.cs @@ -15,6 +15,7 @@ public class LogEntry public static Color NormalColor { get; set; } = Color.FromArgb(System.Drawing.SystemColors.WindowText.A, System.Drawing.SystemColors.WindowText.R, System.Drawing.SystemColors.WindowText.G, System.Drawing.SystemColors.WindowText.B); public static Color SuccessColor { get; set; } = Color.FromRgb(50, 175, 50); public static Color ErrorColor { get; set; } = Color.FromRgb(175, 50, 50); + public static Color WarningColor { get; set; } = Color.FromRgb(255, 170, 0); private string message; private LogEntryType logMessageType; private DateTime timeStamp; @@ -53,6 +54,10 @@ public Color Color { return ErrorColor; } + else if (Type == LogEntryType.Warning) + { + return WarningColor; + } return NormalColor; } } @@ -94,7 +99,8 @@ public enum LogEntryType { Normal, Success, - Error + Error, + Warning } public class LoggedMessageEventArgs : EventArgs { diff --git a/MainWindow.xaml b/MainWindow.xaml index 90406a7..4a3452a 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -87,6 +87,7 @@ + @@ -120,7 +121,8 @@