Move default value for EnableUserDim to base class

This commit is contained in:
Dean Herbert 2019-07-12 11:40:32 +09:00
parent 0d9f978857
commit b5ca7faca4
2 changed files with 1 additions and 5 deletions

View File

@ -18,10 +18,6 @@ public class DimmableStoryboardContainer : UserDimContainer
public DimmableStoryboardContainer(Storyboard storyboard)
{
this.storyboard = storyboard;
// Storyboards current do not get used in scenarios without user dim, so default to enabled here.
EnableUserDim.Default = true;
EnableUserDim.Value = true;
}
[BackgroundDependencyLoader]

View File

@ -20,7 +20,7 @@ public abstract class UserDimContainer : Container
/// <summary>
/// Whether or not user-configured dim levels should be applied to the container.
/// </summary>
public readonly Bindable<bool> EnableUserDim = new Bindable<bool>();
public readonly Bindable<bool> EnableUserDim = new Bindable<bool>(true);
/// <summary>
/// Whether or not the storyboard loaded should completely hide the background behind it.