From 7ed8ade1ebc8d0f1f144f6252922940921520134 Mon Sep 17 00:00:00 2001 From: Anton Kasyanov Date: Wed, 19 Oct 2016 23:40:48 +0300 Subject: [PATCH] True Black (0,0,0) cannot be used as a highlight color --- Eve-O-Preview/Configuration/ThumbnailConfig.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Eve-O-Preview/Configuration/ThumbnailConfig.cs b/Eve-O-Preview/Configuration/ThumbnailConfig.cs index 31acfd1..1a56251 100644 --- a/Eve-O-Preview/Configuration/ThumbnailConfig.cs +++ b/Eve-O-Preview/Configuration/ThumbnailConfig.cs @@ -65,7 +65,22 @@ namespace EveOPreview.Configuration public bool ShowThumbnailFrames { get; set; } public bool EnableActiveClientHighlight { get; set; } - public Color ActiveClientHighlightColor { get; set; } + + public Color ActiveClientHighlightColor + { + get + { + return this._activeClientHighlightColor; + } + set + { + // Some WinForms magic + // True Black color cannot be used as highlight frame color + // So a somewhat less-Black one is used + this._activeClientHighlightColor = (value != Color.Black) ? value : Color.FromArgb(1, 1, 1); + } + } + private Color _activeClientHighlightColor; [JsonProperty] private Dictionary> PerClientLayout { get; set; }