Remove darkening filter from Splashscreen

Using the foregroundLayer parameter has the same effect
This commit is contained in:
David Ullmer
2021-08-17 18:34:54 +02:00
committed by Cody Robibero
parent e026ba84c5
commit 68db3be0e7
5 changed files with 10 additions and 54 deletions

View File

@@ -11,7 +11,7 @@ namespace MediaBrowser.Controller.Drawing
/// <summary>
/// Generates a splashscreen.
/// </summary>
/// <param name="generationOptions">The options used to generate the splashscreen.</param>
void GenerateSplashscreen(SplashscreenOptions generationOptions);
/// <param name="outputPath">The path where the splashscreen should be saved.</param>
void GenerateSplashscreen(string outputPath);
}
}

View File

@@ -1,29 +0,0 @@
namespace MediaBrowser.Controller.Drawing
{
/// <summary>
/// Options used to generate the splashscreen.
/// </summary>
public class SplashscreenOptions
{
/// <summary>
/// Initializes a new instance of the <see cref="SplashscreenOptions"/> class.
/// </summary>
/// <param name="outputPath">The output path.</param>
/// <param name="applyFilter">Optional. Apply a darkening filter.</param>
public SplashscreenOptions(string outputPath, bool applyFilter = false)
{
OutputPath = outputPath;
ApplyFilter = applyFilter;
}
/// <summary>
/// Gets or sets the output path.
/// </summary>
public string OutputPath { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to apply a darkening filter at the end.
/// </summary>
public bool ApplyFilter { get; set; }
}
}