/ src / modules / MouseUtils / MouseJump.Common / Models / Styles / BackgroundStyle.cs
BackgroundStyle.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  namespace MouseJump.Common.Models.Styles;
 6  
 7  /// <summary>
 8  /// Represents the background fill style for a drawing object.
 9  /// </summary>
10  public sealed class BackgroundStyle
11  {
12      public static readonly BackgroundStyle Empty = new(
13          Color.Transparent,
14          Color.Transparent
15      );
16  
17      public BackgroundStyle(
18          Color? color1,
19          Color? color2)
20      {
21          this.Color1 = color1;
22          this.Color2 = color2;
23      }
24  
25      public Color? Color1
26      {
27          get;
28      }
29  
30      public Color? Color2
31      {
32          get;
33      }
34  
35      public override string ToString()
36      {
37          return "{" +
38             $"{nameof(this.Color1)}={this.Color1}," +
39             $"{nameof(this.Color2)}={this.Color2}" +
40             "}";
41      }
42  }