Browse Source

Revert "Break the API"

This reverts commit f043f6b1617c85706c7c33741024a09b5b8c7d89.
pull/12072/head
Max Katz 3 years ago
parent
commit
13c6fbe1db
  1. 4
      src/Avalonia.Controls.ColorPicker/ColorChangedEventArgs.cs
  2. 2
      src/Avalonia.Controls.ColorPicker/HsvComponent.cs

4
src/Avalonia.Controls.ColorPicker/ColorChangedEventArgs.cs

@ -24,14 +24,14 @@ namespace Avalonia.Controls
/// <param name="newColor">The new/updated color that triggered the change event.</param>
public ColorChangedEventArgs(Color oldColor, Color newColor)
{
//OldColor = oldColor;
OldColor = oldColor;
NewColor = newColor;
}
/// <summary>
/// Gets the old/original color from before the change event.
/// </summary>
//public Color OldColor { get; private set; }
public Color OldColor { get; private set; }
/// <summary>
/// Gets the new/updated color that triggered the change event.

2
src/Avalonia.Controls.ColorPicker/HsvComponent.cs

@ -18,7 +18,7 @@ namespace Avalonia.Controls
/// <remarks>
/// Also see: <see cref="HsvColor.A"/>
/// </remarks>
// Alpha = 0,
Alpha = 0,
/// <summary>
/// The Hue component.

Loading…
Cancel
Save