Fix focusTextStyle for VerticalMenuView (lightbar)

This commit is contained in:
Bryan Ashby 2018-01-15 21:40:13 -07:00
parent 78ca1e9c4f
commit 16c8fd0afc
1 changed files with 2 additions and 2 deletions

View File

@ -68,11 +68,11 @@ function VerticalMenuView(options) {
const focusItem = self.focusItems[index];
text = strUtil.stylizeString(
focusItem ? focusItem.text : item.text,
self.textStyle
self.focusTextStyle
);
sgr = '';
} 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());
}