|
@@ -1,4 +1,5 @@
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using System.Collections.Frozen;
|
|
|
|
|
|
namespace Godot
|
|
namespace Godot
|
|
{
|
|
{
|
|
@@ -9,7 +10,7 @@ namespace Godot
|
|
public static class Colors
|
|
public static class Colors
|
|
{
|
|
{
|
|
// Color names and values are derived from core/math/color_names.inc
|
|
// Color names and values are derived from core/math/color_names.inc
|
|
- internal static readonly Dictionary<string, Color> NamedColors = new Dictionary<string, Color> {
|
|
|
|
|
|
+ internal static readonly FrozenDictionary<string, Color> NamedColors = new Dictionary<string, Color> {
|
|
{ "ALICEBLUE", Colors.AliceBlue },
|
|
{ "ALICEBLUE", Colors.AliceBlue },
|
|
{ "ANTIQUEWHITE", Colors.AntiqueWhite },
|
|
{ "ANTIQUEWHITE", Colors.AntiqueWhite },
|
|
{ "AQUA", Colors.Aqua },
|
|
{ "AQUA", Colors.Aqua },
|
|
@@ -156,7 +157,7 @@ namespace Godot
|
|
{ "WHITESMOKE", Colors.WhiteSmoke },
|
|
{ "WHITESMOKE", Colors.WhiteSmoke },
|
|
{ "YELLOW", Colors.Yellow },
|
|
{ "YELLOW", Colors.Yellow },
|
|
{ "YELLOWGREEN", Colors.YellowGreen },
|
|
{ "YELLOWGREEN", Colors.YellowGreen },
|
|
- };
|
|
|
|
|
|
+ }.ToFrozenDictionary();
|
|
|
|
|
|
#pragma warning disable CS1591 // Disable warning: "Missing XML comment for publicly visible type or member"
|
|
#pragma warning disable CS1591 // Disable warning: "Missing XML comment for publicly visible type or member"
|
|
public static Color AliceBlue => new Color(0xF0F8FFFF);
|
|
public static Color AliceBlue => new Color(0xF0F8FFFF);
|