#7 Ability for PerClientThumbnailSize added to configuration

This commit is contained in:
Izakbar
2024-11-11 23:24:40 +00:00
parent b76ab65894
commit d3a0894f46
5 changed files with 44 additions and 2 deletions

View File

@@ -207,6 +207,12 @@ namespace EveOPreview.Services
foreach (IProcessInfo process in addedProcesses)
{
Size initialSize = this._configuration.ThumbnailSize;
if (this._configuration.PerClientThumbnailSize.Any(x => x.Key == process.Title))
{
initialSize = this._configuration.PerClientThumbnailSize[process.Title];
}
IThumbnailView view = this._thumbnailViewFactory.Create(process.Handle, process.Title, this._configuration.ThumbnailSize);
view.IsOverlayEnabled = this._configuration.ShowThumbnailOverlays;
view.SetFrames(this._configuration.ShowThumbnailFrames);
@@ -407,6 +413,7 @@ namespace EveOPreview.Services
if (this.IsManageableThumbnail(view))
{
view.ThumbnailLocation = this._configuration.GetThumbnailLocation(view.Title, this._activeClient.Title, view.ThumbnailLocation);
view.ThumbnailSize = this._configuration.GetThumbnailSize(view.Title, this._activeClient.Title, view.ThumbnailSize);
}
view.SetOpacity(this._configuration.ThumbnailOpacity);