Skip to content

Commit 03e9a06

Browse files
authored
Update ColorConversionExtensions.shared.cs (#2945)
1 parent fd8e3e2 commit 03e9a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommunityToolkit.Maui.Core/Extensions/ColorConversionExtensions.shared.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static string ToCmykString(this Color color)
6666
public static string ToCmykaString(this Color color, CultureInfo? cultureInfo = null)
6767
{
6868
ArgumentNullException.ThrowIfNull(color);
69-
return $"CMYKA({color.GetPercentCyan():P0},{color.GetPercentMagenta():P0},{color.GetPercentYellow():P0},{color.GetPercentBlackKey():P0},{color.Alpha.ToString(cultureInfo)})";
69+
return $"CMYKA({color.GetPercentCyan().ToString("P0", cultureInfo)},{color.GetPercentMagenta().ToString("P0", cultureInfo)},{color.GetPercentYellow().ToString("P0", cultureInfo)},{color.GetPercentBlackKey().ToString("P0", cultureInfo)},{color.Alpha.ToString(cultureInfo)})";
7070
}
7171

7272
/// <summary>

0 commit comments

Comments
 (0)