Optionally show a border around the thumbnail of the currently active EVE client

This commit is contained in:
Anton Kasyanov
2016-08-17 19:18:47 +03:00
parent 91169aae12
commit 536f26a404
5 changed files with 456 additions and 150 deletions

View File

@@ -218,9 +218,31 @@ namespace EveOPreview.UI
}
}
public bool EnableActiveClientHighlight { get; set; }
public bool EnableActiveClientHighlight
{
get
{
return this.EnableActiveClientHighlightCheckBox.Checked;
}
set
{
this.EnableActiveClientHighlightCheckBox.Checked = value;
}
}
public Color ActiveClientHighlightColor { get; set; }
public Color ActiveClientHighlightColor
{
get
{
return this._activeClientHighlightColor;
}
set
{
this._activeClientHighlightColor = value;
this.ActiveClientHighlightColorButton.BackColor = value;
}
}
private Color _activeClientHighlightColor;
public new void Show()
{
@@ -345,6 +367,23 @@ namespace EveOPreview.UI
this.ThumbnailsSizeChanged?.Invoke();
}
private void ActiveClientHighlightColorButton_Click(object sender, EventArgs e)
{
using (ColorDialog dialog = new ColorDialog())
{
dialog.Color = this.ActiveClientHighlightColor;
if (dialog.ShowDialog() != DialogResult.OK)
{
return;
}
this.ActiveClientHighlightColor = dialog.Color;
}
this.OptionChanged_Handler(sender, e);
}
private void ThumbnailsList_ItemCheck_Handler(object sender, ItemCheckEventArgs e)
{
IThumbnailDescriptionView selectedItem = this.ThumbnailsList.Items[e.Index] as IThumbnailDescriptionView;