From b8d6b7bc6d148bd844e2ea8b072b625c7ddf88d9 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Wed, 22 Apr 2015 08:28:15 -0400 Subject: [PATCH] Predefined colors should be read-only, and add Cyan color --- CSharp/Plugins/UniversalEditor.Plugins.Multimedia/Color.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/Color.cs b/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/Color.cs index 5a05f044..96a1fa4b 100644 --- a/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/Color.cs +++ b/CSharp/Plugins/UniversalEditor.Plugins.Multimedia/Color.cs @@ -121,9 +121,12 @@ namespace UniversalEditor private static Color m_Red = Color.FromRGBA(255, 0, 0); public static Color Red { get { return m_Red; } } private static Color m_Green = Color.FromRGBA(0, 255, 0); - public static Color Green { get { return m_Green; } set { m_Green = value; } } + public static Color Green { get { return m_Green; } } private static Color m_Blue = Color.FromRGBA(0, 0, 255); - public static Color Blue { get { return m_Blue; } set { m_Blue = value; } } + public static Color Blue { get { return m_Blue; } } + + private static Color m_Cyan = Color.FromRGBA(0, 255, 255); + public static Color Cyan { get { return m_Cyan; } } private static Color m_LightGreen = Color.FromRGBA(144, 238, 144); public static Color LightGreen { get { return m_LightGreen; } }