From 16c8fd0afc57e2bd876e06df198e9807ee9f39ed Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 15 Jan 2018 21:40:13 -0700 Subject: [PATCH] Fix focusTextStyle for VerticalMenuView (lightbar) --- core/vertical_menu_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vertical_menu_view.js b/core/vertical_menu_view.js index 9fe4cc7d..a7e566eb 100644 --- a/core/vertical_menu_view.js +++ b/core/vertical_menu_view.js @@ -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()); }