Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fully qualified namespace for Color reference in TextToColorGenerator #1332

Merged
merged 5 commits into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class TextColorToGenerator : IIncrementalGenerator
const string iTextStyleInterface = "Microsoft.Maui.ITextStyle";
const string iAnimatableInterface = "Microsoft.Maui.Controls.IAnimatable";
const string mauiControlsAssembly = "Microsoft.Maui.Controls";
const string mauiColorFullName = "global::Microsoft.Maui.Graphics.Color";

public void Initialize(IncrementalGeneratorInitializationContext context)
{
Expand Down Expand Up @@ -115,7 +116,7 @@ namespace {{textStyleClassMetadata.Namespace}};
/// <param name="length">The duration, in milliseconds, of the animation</param>
/// <param name="easing">The easing function to be used in the animation</param>
/// <returns>Value indicating if the animation completed successfully or not</returns>
public static Task<bool> TextColorTo{{textStyleClassMetadata.GenericArguments}}(this {{textStyleClassMetadata.Namespace}}.{{textStyleClassMetadata.ClassName}}{{textStyleClassMetadata.GenericArguments}} element, Color color, uint rate = 16u, uint length = 250u, Easing? easing = null)
public static Task<bool> TextColorTo{{textStyleClassMetadata.GenericArguments}}(this global::{{textStyleClassMetadata.Namespace}}.{{textStyleClassMetadata.ClassName}}{{textStyleClassMetadata.GenericArguments}} element, {{mauiColorFullName}} color, uint rate = 16u, uint length = 250u, Easing? easing = null)
{{textStyleClassMetadata.GenericConstraints}}
{
ArgumentNullException.ThrowIfNull(element);
Expand Down