mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[ColorPicker] Unify HEX color to lower case (#16492)
This commit is contained in:
@@ -79,9 +79,9 @@ namespace ColorPicker.Helpers
|
||||
/// <param name="color">The see cref="Color"/> for the hexadecimal presentation</param>
|
||||
/// <returns>A hexadecimal <see cref="string"/> representation of a RGB color</returns>
|
||||
private static string ColorToHex(Color color)
|
||||
=> $"{color.R.ToString("X2", CultureInfo.InvariantCulture)}"
|
||||
+ $"{color.G.ToString("X2", CultureInfo.InvariantCulture)}"
|
||||
+ $"{color.B.ToString("X2", CultureInfo.InvariantCulture)}";
|
||||
=> $"{color.R.ToString("x2", CultureInfo.InvariantCulture)}"
|
||||
+ $"{color.G.ToString("x2", CultureInfo.InvariantCulture)}"
|
||||
+ $"{color.B.ToString("x2", CultureInfo.InvariantCulture)}";
|
||||
|
||||
/// <summary>
|
||||
/// Return a <see cref="string"/> representation of a HSB color
|
||||
|
||||
Reference in New Issue
Block a user