mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
New menu sorting, fix up default SGR
This commit is contained in:
parent
b6317e0541
commit
999033ec15
4 changed files with 33 additions and 4 deletions
|
@ -71,7 +71,7 @@ function VerticalMenuView(options) {
|
|||
text = focusItem ? focusItem.text : item.text;
|
||||
sgr = '';
|
||||
} else if(this.complexItems) {
|
||||
text = pipeToAnsi(formatString(item.focused ? this.focusItemFormat : this.itemFormat, item));
|
||||
text = pipeToAnsi(formatString(item.focused && this.focusItemFormat ? this.focusItemFormat : this.itemFormat, item));
|
||||
sgr = this.focusItemFormat ? '' : (index === self.focusedItemIndex ? self.getFocusSGR() : self.getSGR());
|
||||
} else {
|
||||
text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue