#7 Ability for PerClientThumbnailSize added to configuration
This commit is contained in:
@@ -41,6 +41,12 @@ namespace EveOPreview.Configuration.Implementation
|
||||
{"EVE - Example Toon 2", Color.Green}
|
||||
};
|
||||
|
||||
this.PerClientThumbnailSize = new Dictionary<string, Size>
|
||||
{
|
||||
{"EVE - Example Toon 1", new Size(200, 200)},
|
||||
{"EVE - Example Toon 2", new Size(200, 200)}
|
||||
};
|
||||
|
||||
this.PerClientLayout = new Dictionary<string, Dictionary<string, Point>>();
|
||||
this.FlatLayout = new Dictionary<string, Point>();
|
||||
this.ClientLayout = new Dictionary<string, ClientLayout>();
|
||||
@@ -119,6 +125,9 @@ namespace EveOPreview.Configuration.Implementation
|
||||
[JsonProperty("PerClientActiveClientHighlightColor")]
|
||||
public Dictionary<string, Color> PerClientActiveClientHighlightColor { get; set; }
|
||||
|
||||
[JsonProperty("PerClientThumbnailSize")]
|
||||
public Dictionary<string, Size> PerClientThumbnailSize { get; set; }
|
||||
|
||||
public bool MinimizeToTray { get; set; }
|
||||
public int ThumbnailRefreshPeriod { get; set; }
|
||||
|
||||
@@ -230,6 +239,12 @@ namespace EveOPreview.Configuration.Implementation
|
||||
return this.FlatLayout.TryGetValue(currentClient, out location) ? location : defaultLocation;
|
||||
}
|
||||
|
||||
public Size GetThumbnailSize(string currentClient, string activeClient, Size defaultSize)
|
||||
{
|
||||
Size sizeOfThumbnail;
|
||||
return this.PerClientThumbnailSize.TryGetValue(currentClient, out sizeOfThumbnail) ? sizeOfThumbnail : defaultSize;
|
||||
}
|
||||
|
||||
public void SetThumbnailLocation(string currentClient, string activeClient, Point location)
|
||||
{
|
||||
Dictionary<string, Point> layoutSource;
|
||||
|
Reference in New Issue
Block a user