diff --git a/exec/load/tree.js b/exec/load/tree.js index f3368c573f2b027cf6d593a2cb909dcc9afb7cdf..dac041a6a5a2f9c1883b6b247ae3cfdde3ced7b4 100644 --- a/exec/load/tree.js +++ b/exec/load/tree.js @@ -715,7 +715,8 @@ function TreeItem(text,parent,func,args) { var properties = { parent:undefined, status:undefined, - text:undefined + text:undefined, + attr:undefined }; /* protected properties */ @@ -742,6 +743,9 @@ function TreeItem(text,parent,func,args) { this.__defineGetter__("colors",function() { return properties.parent.colors; }); + this.__defineSetter__("attr",function(attr) { + properties.attr = attr; + }); this.__defineGetter__("hash",function() { return properties.parent.hash+"\t"+properties.text; }); @@ -845,8 +849,10 @@ function TreeItem(text,parent,func,args) { else if(current) fg=this.colors.lfg; /* normal menu fg */ - else + else if(properties.attr == undefined) fg=this.colors.fg; + else + fg=properties.attr; /* push text string into list */ for(var i=0;i<properties.text.length;i++)