Browse Source

Simplify default color property values

pull/8050/head
robloo 4 years ago
parent
commit
a5b3e85dfc
  1. 4
      src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.Properties.cs

4
src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.Properties.cs

@ -29,7 +29,7 @@ namespace Avalonia.Controls.Primitives
public static readonly StyledProperty<Color> ColorProperty =
AvaloniaProperty.Register<ColorSpectrum, Color>(
nameof(Color),
Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF));
Colors.White);
/// <summary>
/// Gets or sets the two HSV color components displayed by the spectrum.
@ -71,7 +71,7 @@ namespace Avalonia.Controls.Primitives
public static readonly StyledProperty<HsvColor> HsvColorProperty =
AvaloniaProperty.Register<ColorSpectrum, HsvColor>(
nameof(HsvColor),
new HsvColor(1, 0, 0, 1));
Colors.White.ToHsv());
/// <summary>
/// Gets or sets the maximum value of the Hue component in the range from 0..359.

Loading…
Cancel
Save