remove all cens() calls.

This commit is contained in:
Christopher Jeffrey 2013-07-16 19:13:16 -05:00
parent 52042e8abc
commit 8a32e87cd9

View File

@ -1384,8 +1384,6 @@ function Element(options) {
this.style.inverse = options.inverse;
this.style.invisible = options.invisible;
}
//this.style.fg = cens(this.style.fg);
//this.style.bg = cens(this.style.bg);
this.hidden = options.hidden || false;
this.fixed = options.fixed || false;
@ -1403,8 +1401,6 @@ function Element(options) {
this.border.style.fg = this.border.fg;
this.border.style.bg = this.border.bg;
}
//this.border.style.fg = cens(this.border.style.fg);
//this.border.style.bg = cens(this.border.style.bg);
this.style.border = this.border.style;
}
@ -1427,9 +1423,8 @@ function Element(options) {
left: 2,
top: this.border ? 0 : -1,
tags: this.parseTags,
shrink: true
// bg: this.border ? this.border.bg : null,
// fg: this.border ? this.border.fg : null
shrink: true,
style: this.style.label
}));
}
@ -2439,8 +2434,6 @@ function ScrollableBox(options) {
this.scrollbar.style.fg = this.scrollbar.fg;
this.scrollbar.style.bg = this.scrollbar.bg;
}
//this.scrollbar.style.fg = cens(this.scrollbar.style.fg);
//this.scrollbar.style.bg = cens(this.scrollbar.style.bg);
this.style.scrollbar = this.scrollbar.style;
}
}
@ -2541,8 +2534,6 @@ function List(options) {
this.style.selected.inverse = options.selectedInverse;
this.style.selected.invisible = options.selectedInvisible;
}
//this.style.selected.bg = cens(this.style.selected.bg);
//this.style.selected.fg = cens(this.style.selected.fg);
if (!this.style.item) {
this.style.item = {};
@ -2554,8 +2545,6 @@ function List(options) {
this.style.item.inverse = options.itemInverse;
this.style.item.invisible = options.itemInvisible;
}
//this.style.item.bg = cens(this.style.item.bg);
//this.style.item.fg = cens(this.style.item.fg);
// Legacy: for apps written before the addition of item attributes.
['bg', 'fg', 'bold', 'underline',
@ -3357,8 +3346,6 @@ function ProgressBar(options) {
this.style.bar.fg = options.barFg;
this.style.bar.bg = options.barBg;
}
//this.style.bar.fg = cens(this.style.bar.fg);
//this.style.bar.bg = cens(this.style.bar.bg);
this.orientation = options.orientation || 'horizontal';
}
@ -4333,12 +4320,6 @@ function hsort(obj) {
});
}
function cens(color) {
return color != null
? color
: -1;
}
/**
* Expose
*/