Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Added option to hide thumbnails sitting at login screen #154

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public ThumbnailConfiguration()
this.ShowThumbnailsAlwaysOnTop = true;
this.HideThumbnailsOnLostFocus = false;
this.EnablePerClientThumbnailLayouts = false;
this.HideThumbnailBeforeLogin = false;


this.ThumbnailSize = new Size(384, 216);
this.ThumbnailMinimumSize = new Size(192, 108);
Expand Down Expand Up @@ -80,6 +82,7 @@ public bool EnableClientLayoutTracking
public bool MinimizeInactiveClients { get; set; }
public bool ShowThumbnailsAlwaysOnTop { get; set; }
public bool HideThumbnailsOnLostFocus { get; set; }
public bool HideThumbnailBeforeLogin { get; set; }

public bool EnablePerClientThumbnailLayouts
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public interface IThumbnailConfiguration
bool ShowThumbnailsAlwaysOnTop { get; set; }
bool HideThumbnailsOnLostFocus { get; set; }
bool EnablePerClientThumbnailLayouts { get; set; }
bool HideThumbnailBeforeLogin { get; set; }

Size ThumbnailSize { get; set; }
Size ThumbnailMinimumSize { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions Eve-O-Preview/Presenters/Implementation/MainFormPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ private void LoadApplicationSettings()
this.View.ShowThumbnailsAlwaysOnTop = this._configuration.ShowThumbnailsAlwaysOnTop;
this.View.HideThumbnailsOnLostFocus = this._configuration.HideThumbnailsOnLostFocus;
this.View.EnablePerClientThumbnailLayouts = this._configuration.EnablePerClientThumbnailLayouts;
this.View.HideThumbnailsBeforeLogin = this._configuration.HideThumbnailBeforeLogin;

this.View.SetThumbnailSizeLimitations(this._configuration.ThumbnailMinimumSize, this._configuration.ThumbnailMaximumSize);
this.View.ThumbnailSize = this._configuration.ThumbnailSize;
Expand All @@ -135,6 +136,7 @@ private async void SaveApplicationSettings()
this._configuration.ShowThumbnailsAlwaysOnTop = this.View.ShowThumbnailsAlwaysOnTop;
this._configuration.HideThumbnailsOnLostFocus = this.View.HideThumbnailsOnLostFocus;
this._configuration.EnablePerClientThumbnailLayouts = this.View.EnablePerClientThumbnailLayouts;
this._configuration.HideThumbnailBeforeLogin = this.View.HideThumbnailsBeforeLogin;

this._configuration.ThumbnailSize = this.View.ThumbnailSize;

Expand Down
9 changes: 9 additions & 0 deletions Eve-O-Preview/Services/Implementation/ThumbnailManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ private void RefreshThumbnails()
continue;
}

if (this._configuration.HideThumbnailBeforeLogin && (view.Title == ThumbnailManager.DEFAULT_CLIENT_TITLE))
{
if (view.IsActive)
{
view.Hide();
}
continue;
}

// No need to update Thumbnails while one of them is highlighted
if (!this._isHoverEffectActive)
{
Expand Down
1,684 changes: 825 additions & 859 deletions Eve-O-Preview/View/Implementation/MainForm.Designer.cs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Eve-O-Preview/View/Implementation/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ public bool HideThumbnailsOnLostFocus
set => this.HideThumbnailsOnLostFocusCheckBox.Checked = value;
}

public bool HideThumbnailsBeforeLogin
{
get => this.EnableHideAtLoginThumbnailsLayoutsCheckBox.Checked;
set => this.EnableHideAtLoginThumbnailsLayoutsCheckBox.Checked = value;
}

public bool EnablePerClientThumbnailLayouts
{
get => this.EnablePerClientThumbnailsLayoutsCheckBox.Checked;
Expand Down
216 changes: 3 additions & 213 deletions Eve-O-Preview/View/Implementation/MainForm.resx

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Eve-O-Preview/View/Interface/IMainFormView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ public interface IMainFormView : IView
bool MinimizeToTray { get; set; }

double ThumbnailOpacity { get; set; }

bool EnableClientLayoutTracking { get; set; }
bool HideActiveClientThumbnail { get; set; }
bool MinimizeInactiveClients { get; set; }
bool ShowThumbnailsAlwaysOnTop { get; set; }
bool HideThumbnailsOnLostFocus { get; set; }
bool EnablePerClientThumbnailLayouts { get; set; }
bool HideThumbnailsBeforeLogin { get; set; }

Size ThumbnailSize { get; set; }

Expand Down