Browse Source

Rename 'channel' to 'component'

pull/8050/head
robloo 4 years ago
parent
commit
53bc556f24
  1. 2
      src/Avalonia.Controls.ColorPicker/Converters/AccentColorConverter.cs
  2. 2
      src/Avalonia.Controls.ColorPicker/Converters/ColorToDisplayNameConverter.cs

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

@ -12,7 +12,7 @@ namespace Avalonia.Controls.Primitives.Converters
public class AccentColorConverter : IValueConverter
{
/// <summary>
/// The amount to change the Value channel for each accent color step.
/// The amount to change the Value component for each accent color step.
/// </summary>
public const double ValueDelta = 0.1;

2
src/Avalonia.Controls.ColorPicker/Converters/ColorToDisplayNameConverter.cs

@ -42,7 +42,7 @@ namespace Avalonia.Controls.Converters
return AvaloniaProperty.UnsetValue;
}
// ColorHelper.ToDisplayName ignores the alpha channel value
// ColorHelper.ToDisplayName ignores the alpha component
// This means fully transparent colors will be named as a real color
// That undesirable behavior is specially overridden here
if (color.A == 0x00)

Loading…
Cancel
Save