mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 07:04:32 +02:00
* Start on new theme re-work
* theme_info.json -> theme.json * Allow pipe codes for styleSGRx
This commit is contained in:
parent
58746ca9a9
commit
2aa43295e3
10 changed files with 68 additions and 61 deletions
|
@ -196,9 +196,9 @@ function ViewController(options) {
|
|||
['styleSGR1', 'styleSGR2'].forEach(function styleSgr(style) {
|
||||
setViewProp(style, function(v) {
|
||||
if(_.isObject(v)) {
|
||||
view.styleSGR1 = ansi.getSGRFromGraphicRendition(v, true);
|
||||
view[style] = ansi.getSGRFromGraphicRendition(v, true);
|
||||
} else if(_.isString(v)) {
|
||||
view.styleSGR1 = v;
|
||||
view[style] = ansi.fromPipeCode(v);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -213,7 +213,7 @@ function ViewController(options) {
|
|||
|
||||
setViewProp('password', function(v) {
|
||||
if(true === v) {
|
||||
view.textMaskChar = self.client.currentThemeInfo.getPasswordChar();
|
||||
view.textMaskChar = self.client.currentTheme.helpers.getPasswordChar();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue