True Black (0,0,0) cannot be used as a highlight color

This commit is contained in:
Anton Kasyanov
2016-10-19 23:40:48 +03:00
parent 765c35ac0b
commit 7ed8ade1eb

View File

@@ -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<string, Dictionary<string, Point>> PerClientLayout { get; set; }