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> /// <param name="newColor">The new/updated color that triggered the change event.</param>
public ColorChangedEventArgs(Color oldColor, Color newColor) public ColorChangedEventArgs(Color oldColor, Color newColor)
{ {
//OldColor = oldColor; OldColor = oldColor;
NewColor = newColor; NewColor = newColor;
} }
/// <summary> /// <summary>
/// Gets the old/original color from before the change event. /// Gets the old/original color from before the change event.
/// </summary> /// </summary>
//public Color OldColor { get; private set; } public Color OldColor { get; private set; }
/// <summary> /// <summary>
/// Gets the new/updated color that triggered the change event. /// 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> /// <remarks>
/// Also see: <see cref="HsvColor.A"/> /// Also see: <see cref="HsvColor.A"/>
/// </remarks> /// </remarks>
// Alpha = 0, Alpha = 0,
/// <summary> /// <summary>
/// The Hue component. /// The Hue component.

Loading…
Cancel
Save