Browse Source

Fix comments

pull/9131/head
robloo 4 years ago
parent
commit
ea6c90b8fc
  1. 3
      src/Avalonia.Controls.ColorPicker/ColorPalettes/MaterialColorPalette.cs

3
src/Avalonia.Controls.ColorPicker/ColorPalettes/MaterialColorPalette.cs

@ -318,7 +318,6 @@ namespace Avalonia.Controls
/// <inheritdoc/> /// <inheritdoc/>
public int ColorCount public int ColorCount
{ {
// Table is transposed compared to the reference chart
get get
{ {
if (_colorChart == null) if (_colorChart == null)
@ -333,7 +332,6 @@ namespace Avalonia.Controls
/// <inheritdoc/> /// <inheritdoc/>
public int ShadeCount public int ShadeCount
{ {
// Table is transposed compared to the reference chart
get get
{ {
if (_colorChart == null) if (_colorChart == null)
@ -353,7 +351,6 @@ namespace Avalonia.Controls
InitColorChart(); InitColorChart();
} }
// Table is transposed compared to the reference chart
return _colorChart![ return _colorChart![
MathUtilities.Clamp(colorIndex, 0, _colorChartColorCount - 1), MathUtilities.Clamp(colorIndex, 0, _colorChartColorCount - 1),
MathUtilities.Clamp(shadeIndex, 0, _colorChartShadeCount - 1)]; MathUtilities.Clamp(shadeIndex, 0, _colorChartShadeCount - 1)];

Loading…
Cancel
Save