The representation of a Theme used for XML serialization.
Ejemplo n.º 1
0
 /// <summary>
 /// Returns a <see cref="Theme"/> for the specified <see cref="ThemeInfo"/>, or <c>null</c> if the specified
 /// <see cref="ThemeInfo"/> is <c>null</c>.
 /// </summary>
 /// <param name="info">A <see cref="ThemeInfo"/>.</param>
 /// <returns>A <see cref="Theme"/> for the specified <see cref="ThemeInfo"/>, or <c>null</c> if the specified
 /// <see cref="ThemeInfo"/> is <c>null</c>.</returns>
 public static Theme FromThemeInfo(ThemeInfo info)
 {
     return info != null ? new Theme(info) : null;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Theme"/> class from a <see cref="ThemeInfo"/>.
 /// </summary>
 /// <param name="info">A <see cref="ThemeInfo"/>.</param>
 public Theme(ThemeInfo info)
     : this(ThemeType.UserProvided,
         info.Identifier,
         info.Name,
         info.BackgroundColor,
         info.ProgressBarColor,
         info.ProgressBackgroundColor,
         info.ExpirationFlashColor,
         info.PrimaryTextColor,
         info.PrimaryHintColor,
         info.SecondaryTextColor,
         info.SecondaryHintColor,
         info.ButtonColor,
         info.ButtonHoverColor)
 {
 }