Fix focusTextStyle for VerticalMenuView (lightbar)
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user