Commit e3a4562b authored by konovalovsergey's avatar konovalovsergey

fix bug 33368

parent a0abfc73
...@@ -213,6 +213,11 @@ RgbColor.prototype = ...@@ -213,6 +213,11 @@ RgbColor.prototype =
return 1; return 1;
} }
}; };
var g_oThemeColorProperties = {
rgb: 0,
theme: 1,
tint: 2
};
function ThemeColor() function ThemeColor()
{ {
this.rgb = null; this.rgb = null;
...@@ -221,6 +226,7 @@ function ThemeColor() ...@@ -221,6 +226,7 @@ function ThemeColor()
} }
ThemeColor.prototype = ThemeColor.prototype =
{ {
Properties: g_oThemeColorProperties,
clone : function() clone : function()
{ {
//ThemeColor must be created by g_oColorManager for correct rebuild //ThemeColor must be created by g_oColorManager for correct rebuild
...@@ -231,6 +237,28 @@ ThemeColor.prototype = ...@@ -231,6 +237,28 @@ ThemeColor.prototype =
{ {
return UndoRedoDataTypes.ThemeColor; return UndoRedoDataTypes.ThemeColor;
}, },
getProperties : function()
{
return this.Properties;
},
getProperty : function(nType)
{
switch(nType)
{
case this.Properties.rgb:return this.rgb;break;
case this.Properties.theme:return this.theme;break;
case this.Properties.tint:return this.tint;break;
}
},
setProperty : function(nType, value)
{
switch(nType)
{
case this.Properties.rgb: this.rgb = value;break;
case this.Properties.theme: this.theme= value;break;
case this.Properties.tint: this.tint = value;break;
}
},
isEqual: function(oColor) isEqual: function(oColor)
{ {
if(!oColor){ if(!oColor){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment