From 53bc556f2475668f97b3088fc846808cc7517c78 Mon Sep 17 00:00:00 2001 From: robloo Date: Thu, 28 Apr 2022 21:19:59 -0400 Subject: [PATCH] Rename 'channel' to 'component' --- .../Converters/AccentColorConverter.cs | 2 +- .../Converters/ColorToDisplayNameConverter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Controls.ColorPicker/Converters/AccentColorConverter.cs b/src/Avalonia.Controls.ColorPicker/Converters/AccentColorConverter.cs index 01a4bbe800..4d05222e31 100644 --- a/src/Avalonia.Controls.ColorPicker/Converters/AccentColorConverter.cs +++ b/src/Avalonia.Controls.ColorPicker/Converters/AccentColorConverter.cs @@ -12,7 +12,7 @@ namespace Avalonia.Controls.Primitives.Converters public class AccentColorConverter : IValueConverter { /// - /// The amount to change the Value channel for each accent color step. + /// The amount to change the Value component for each accent color step. /// public const double ValueDelta = 0.1; diff --git a/src/Avalonia.Controls.ColorPicker/Converters/ColorToDisplayNameConverter.cs b/src/Avalonia.Controls.ColorPicker/Converters/ColorToDisplayNameConverter.cs index 02105668bb..4f727287ba 100644 --- a/src/Avalonia.Controls.ColorPicker/Converters/ColorToDisplayNameConverter.cs +++ b/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)