Make the thumbnail location for the login page configurable

This commit is contained in:
Aura Asuna
2022-05-10 18:12:30 +10:00
parent 1a2a43c301
commit 533a208bff
4 changed files with 10 additions and 12 deletions

View File

@@ -78,6 +78,8 @@ namespace EveOPreview.Configuration.Implementation
this.EnableActiveClientHighlight = false;
this.ActiveClientHighlightColor = Color.GreenYellow;
this.ActiveClientHighlightThickness = 3;
this.LoginThumbnailLocation = new Point(5, 5);
}
[JsonProperty("CycleGroup1ForwardHotkeys")]
@@ -165,6 +167,9 @@ namespace EveOPreview.Configuration.Implementation
public int ActiveClientHighlightThickness { get; set; }
[JsonProperty("LoginThumbnailLocation")]
public Point LoginThumbnailLocation { get; set; }
[JsonProperty]
private Dictionary<string, Dictionary<string, Point>> PerClientLayout { get; set; }
[JsonProperty]
@@ -178,14 +183,6 @@ namespace EveOPreview.Configuration.Implementation
[JsonProperty]
private List<string> PriorityClients { get; set; }
public Point GetDefaultThumbnailLocation()
{
// Returns default thumbnail location
// This location can be used for f.e. EVE clients sitting on the login screen
// Can be made configurable later (that's why it was moved out here)
return new Point(5, 5);
}
public Point GetThumbnailLocation(string currentClient, string activeClient, Point defaultLocation)
{
Point location;