Skip to content

Commit

Permalink
Remove leftover attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed May 11, 2022
1 parent 6811e16 commit 48f7e16
Show file tree
Hide file tree
Showing 30 changed files with 0 additions and 256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,21 @@ public enum AdaptiveImageAlign
/// <summary>
/// Image stretches to fill available width (and potentially available height too, depending on where the image is).
/// </summary>
[EnumString("stretch")]
Stretch,

/// <summary>
/// Align the image to the left, displaying the image at its native resolution.
/// </summary>
[EnumString("left")]
Left,

/// <summary>
/// Align the image in the center horizontally, displaying the image at its native resolution.
/// </summary>
[EnumString("center")]
Center,

/// <summary>
/// Align the image to the right, displaying the image at its native resolution.
/// </summary>
[EnumString("right")]
Right
}

Expand All @@ -52,13 +48,11 @@ public enum AdaptiveImageCrop
/// <summary>
/// Image is not cropped.
/// </summary>
[EnumString("none")]
None,

/// <summary>
/// Image is cropped to a circle shape.
/// </summary>
[EnumString("circle")]
Circle
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,16 @@ public enum AdaptiveSubgroupTextStacking
/// <summary>
/// Vertical align to the top.
/// </summary>
[EnumString("top")]
Top,

/// <summary>
/// Vertical align to the center.
/// </summary>
[EnumString("center")]
Center,

/// <summary>
/// Vertical align to the bottom.
/// </summary>
[EnumString("bottom")]
Bottom
}
}
23 changes: 0 additions & 23 deletions Microsoft.Toolkit.Uwp.Notifications/Adaptive/AdaptiveTextEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,103 +17,86 @@ public enum AdaptiveTextStyle
/// <summary>
/// Default value. Paragraph font size, normal weight and opacity.
/// </summary>
[EnumString("caption")]
Caption,

/// <summary>
/// Same as Caption but with subtle opacity.
/// </summary>
[EnumString("captionSubtle")]
CaptionSubtle,

/// <summary>
/// H5 font size.
/// </summary>
[EnumString("body")]
Body,

/// <summary>
/// Same as Body but with subtle opacity.
/// </summary>
[EnumString("bodySubtle")]
BodySubtle,

/// <summary>
/// H5 font size, bold weight. Essentially the bold version of Body.
/// </summary>
[EnumString("base")]
Base,

/// <summary>
/// Same as Base but with subtle opacity.
/// </summary>
[EnumString("baseSubtle")]
BaseSubtle,

/// <summary>
/// H4 font size.
/// </summary>
[EnumString("subtitle")]
Subtitle,

/// <summary>
/// Same as Subtitle but with subtle opacity.
/// </summary>
[EnumString("subtitleSubtle")]
SubtitleSubtle,

/// <summary>
/// H3 font size.
/// </summary>
[EnumString("title")]
Title,

/// <summary>
/// Same as Title but with subtle opacity.
/// </summary>
[EnumString("titleSubtle")]
TitleSubtle,

/// <summary>
/// Same as Title but with top/bottom padding removed.
/// </summary>
[EnumString("titleNumeral")]
TitleNumeral,

/// <summary>
/// H2 font size.
/// </summary>
[EnumString("subheader")]
Subheader,

/// <summary>
/// Same as Subheader but with subtle opacity.
/// </summary>
[EnumString("subheaderSubtle")]
SubheaderSubtle,

/// <summary>
/// Same as Subheader but with top/bottom padding removed.
/// </summary>
[EnumString("subheaderNumeral")]
SubheaderNumeral,

/// <summary>
/// H1 font size.
/// </summary>
[EnumString("header")]
Header,

/// <summary>
/// Same as Header but with subtle opacity.
/// </summary>
[EnumString("headerSubtle")]
HeaderSubtle,

/// <summary>
/// Same as Header but with top/bottom padding removed.
/// </summary>
[EnumString("headerNumeral")]
HeaderNumeral
}

Expand All @@ -130,25 +113,21 @@ public enum AdaptiveTextAlign
/// <summary>
/// The system automatically decides the alignment based on the language and culture.
/// </summary>
[EnumString("auto")]
Auto,

/// <summary>
/// Horizontally align the text to the left.
/// </summary>
[EnumString("left")]
Left,

/// <summary>
/// Horizontally align the text in the center.
/// </summary>
[EnumString("center")]
Center,

/// <summary>
/// Horizontally align the text to the right.
/// </summary>
[EnumString("right")]
Right
}

Expand All @@ -158,8 +137,6 @@ internal enum AdaptiveTextPlacement
/// Default value
/// </summary>
Inline,

[EnumString("attribution")]
Attribution
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,24 @@ internal sealed class Element_AdaptiveImage : IElement_TileBindingChild, IElemen
internal const AdaptiveImageCrop DEFAULT_CROP = AdaptiveImageCrop.Default;
internal const AdaptiveImageAlign DEFAULT_ALIGN = AdaptiveImageAlign.Default;

[NotificationXmlAttribute("id")]
public int? Id { get; set; }

[NotificationXmlAttribute("src")]
public string Src { get; set; }

[NotificationXmlAttribute("alt")]
public string Alt { get; set; }

[NotificationXmlAttribute("addImageQuery")]
public bool? AddImageQuery { get; set; }

[NotificationXmlAttribute("placement", DEFAULT_PLACEMENT)]
public AdaptiveImagePlacement Placement { get; set; } = DEFAULT_PLACEMENT;

[NotificationXmlAttribute("hint-align", DEFAULT_ALIGN)]
public AdaptiveImageAlign Align { get; set; } = DEFAULT_ALIGN;

[NotificationXmlAttribute("hint-crop", DEFAULT_CROP)]
public AdaptiveImageCrop Crop { get; set; } = DEFAULT_CROP;

[NotificationXmlAttribute("hint-removeMargin")]
public bool? RemoveMargin { get; set; }

private int? _overlay;

[NotificationXmlAttribute("hint-overlay")]
public int? Overlay
{
get
Expand All @@ -57,16 +48,12 @@ public int? Overlay
}
}

[NotificationXmlAttribute("spritesheet-src")]
public string SpriteSheetSrc { get; set; }

[NotificationXmlAttribute("spritesheet-height")]
public uint? SpriteSheetHeight { get; set; }

[NotificationXmlAttribute("spritesheet-fps")]
public uint? SpriteSheetFps { get; set; }

[NotificationXmlAttribute("spritesheet-startingFrame")]
public uint? SpriteSheetStartingFrame { get; set; }

/// <inheritdoc/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@ namespace Microsoft.Toolkit.Uwp.Notifications.Adaptive.Elements
{
internal enum AdaptiveImagePlacement
{
[EnumString("inline")]
Inline,

[EnumString("background")]
Background,

[EnumString("peek")]
Peek,

[EnumString("hero")]
Hero,

[EnumString("appLogoOverride")]
AppLogoOverride
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ namespace Microsoft.Toolkit.Uwp.Notifications.Adaptive.Elements
{
internal sealed class Element_AdaptiveProgressBar : IElement_ToastBindingChild, IHaveXmlName, IHaveXmlNamedProperties
{
[NotificationXmlAttribute("value")]
public string Value { get; set; }

[NotificationXmlAttribute("title")]
public string Title { get; set; }

[NotificationXmlAttribute("valueStringOverride")]
public string ValueStringOverride { get; set; }

[NotificationXmlAttribute("status")]
public string Status { get; set; }

/// <inheritdoc/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ internal sealed class Element_AdaptiveSubgroup : IElementWithDescendants, IHaveX
{
internal const AdaptiveSubgroupTextStacking DEFAULT_TEXT_STACKING = AdaptiveSubgroupTextStacking.Default;

[NotificationXmlAttribute("hint-textStacking", DEFAULT_TEXT_STACKING)]
public AdaptiveSubgroupTextStacking TextStacking { get; set; } = DEFAULT_TEXT_STACKING;

private int? _weight;

[NotificationXmlAttribute("hint-weight")]
public int? Weight
{
get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,16 @@ internal sealed class Element_AdaptiveText : IElement_TileBindingChild, IElement
internal const AdaptiveTextAlign DEFAULT_ALIGN = AdaptiveTextAlign.Default;
internal const AdaptiveTextPlacement DEFAULT_PLACEMENT = AdaptiveTextPlacement.Inline;

[NotificationXmlContent]
public string Text { get; set; }

[NotificationXmlAttribute("id")]
public int? Id { get; set; }

[NotificationXmlAttribute("lang")]
public string Lang { get; set; }

[NotificationXmlAttribute("hint-align", DEFAULT_ALIGN)]
public AdaptiveTextAlign Align { get; set; } = DEFAULT_ALIGN;

private int? _maxLines;

[NotificationXmlAttribute("hint-maxLines")]
public int? MaxLines
{
get
Expand Down Expand Up @@ -56,7 +51,6 @@ internal static void CheckMaxLinesValue(int value)

private int? _minLines;

[NotificationXmlAttribute("hint-minLines")]
public int? MinLines
{
get
Expand All @@ -83,13 +77,10 @@ internal static void CheckMinLinesValue(int value)
}
}

[NotificationXmlAttribute("hint-style", DEFAULT_STYLE)]
public AdaptiveTextStyle Style { get; set; } = DEFAULT_STYLE;

[NotificationXmlAttribute("hint-wrap")]
public bool? Wrap { get; set; }

[NotificationXmlAttribute("placement", DEFAULT_PLACEMENT)]
public AdaptiveTextPlacement Placement { get; set; } = DEFAULT_PLACEMENT;

/// <inheritdoc/>
Expand Down
28 changes: 0 additions & 28 deletions Microsoft.Toolkit.Uwp.Notifications/Common/EnumStringAttribute.cs

This file was deleted.

Loading

0 comments on commit 48f7e16

Please sign in to comment.