mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 13:15:28 +02:00
Fix focusTextStyle for VerticalMenuView (lightbar)
This commit is contained in:
parent
78ca1e9c4f
commit
16c8fd0afc
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ function VerticalMenuView(options) {
|
||||||
const focusItem = self.focusItems[index];
|
const focusItem = self.focusItems[index];
|
||||||
text = strUtil.stylizeString(
|
text = strUtil.stylizeString(
|
||||||
focusItem ? focusItem.text : item.text,
|
focusItem ? focusItem.text : item.text,
|
||||||
self.textStyle
|
self.focusTextStyle
|
||||||
);
|
);
|
||||||
sgr = '';
|
sgr = '';
|
||||||
} else {
|
} else {
|
||||||
text = strUtil.stylizeString(item.text, self.textStyle);
|
text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);
|
||||||
sgr = (index === self.focusedItemIndex ? self.getFocusSGR() : self.getSGR());
|
sgr = (index === self.focusedItemIndex ? self.getFocusSGR() : self.getSGR());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue