mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-02-02 22:24:55 +00:00
remove all cens() calls.
This commit is contained in:
parent
52042e8abc
commit
8a32e87cd9
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user