Merge branch 'master' into 256-truecolor
This commit is contained in:
commit
8c873a3732
7 changed files with 50 additions and 16 deletions
13
index.js
13
index.js
|
|
@ -79,8 +79,19 @@ function build(_styles, key) {
|
|||
return applyStyle.apply(builder, arguments);
|
||||
};
|
||||
|
||||
var self = this;
|
||||
|
||||
builder._styles = _styles;
|
||||
builder.level = this.level;
|
||||
|
||||
Object.defineProperty(builder, 'level', {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return self.level;
|
||||
},
|
||||
set: function (level) {
|
||||
self.level = level;
|
||||
}
|
||||
});
|
||||
|
||||
// see below for fix regarding invisible grey/dim combination on windows.
|
||||
builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue