|
|
|
@ -344,8 +344,10 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
// See: https://material.io/design/color/the-color-system.html#tools-for-picking-colors
|
|
|
|
// This is a reduced palette for uniformity
|
|
|
|
#pragma warning disable CA2211 // Non-constant fields should not be visible
|
|
|
|
protected static Color[,]? _colorChart = null; |
|
|
|
protected static object _colorChartMutex = new object(); |
|
|
|
#pragma warning restore CA2211 // Non-constant fields should not be visible
|
|
|
|
protected static readonly object _colorChartMutex = new(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes all color chart colors.
|
|
|
|
|