Browse Source

Improve comments

pull/8215/head
robloo 4 years ago
parent
commit
7f45cb8a14
  1. 4
      src/Avalonia.Controls.ColorPicker/Converters/AccentColorConverter.cs
  2. 3
      src/Avalonia.Controls.ColorPicker/Converters/ContrastBrushConverter.cs
  3. 4
      src/Avalonia.Controls.ColorPicker/Converters/ThirdComponentConverter.cs

4
src/Avalonia.Controls.ColorPicker/Converters/AccentColorConverter.cs

@ -7,8 +7,10 @@ namespace Avalonia.Controls.Primitives.Converters
{
/// <summary>
/// Creates an accent color for a given base color value and step parameter.
/// This is a highly-specialized converter for the color picker.
/// </summary>
/// <remarks>
/// This is a highly-specialized converter for the color picker.
/// </remarks>
public class AccentColorConverter : IValueConverter
{
/// <summary>

3
src/Avalonia.Controls.ColorPicker/Converters/ContrastBrushConverter.cs

@ -10,6 +10,9 @@ namespace Avalonia.Controls.Primitives.Converters
/// Gets a <see cref="SolidColorBrush"/>, either black or white, depending on the luminance of the supplied color.
/// A default color supplied in the converter parameter may be returned if alpha is below the set threshold.
/// </summary>
/// <remarks>
/// This is a highly-specialized converter for the color picker.
/// </remarks>
public class ContrastBrushConverter : IValueConverter
{
private ToColorConverter toColorConverter = new ToColorConverter();

4
src/Avalonia.Controls.ColorPicker/Converters/ThirdComponentConverter.cs

@ -7,8 +7,10 @@ namespace Avalonia.Controls.Primitives.Converters
/// <summary>
/// Gets the third <see cref="ColorComponent"/> corresponding with a given
/// <see cref="ColorSpectrumComponents"/> that represents the other two components.
/// This is a highly-specialized converter for the color picker.
/// </summary>
/// <remarks>
/// This is a highly-specialized converter for the color picker.
/// </remarks>
public class ThirdComponentConverter : IValueConverter
{
/// <inheritdoc/>

Loading…
Cancel
Save