From ddce44395de7e69e8e140d39a547fb1bfd64f6af Mon Sep 17 00:00:00 2001 From: eeeXun Date: Fri, 4 Nov 2022 23:34:22 +0800 Subject: [PATCH] fix: change keyMapMenu text HighLightColor Should change HighLightColor when switching colorscheme. --- ui.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui.go b/ui.go index 7341af7..ff57b55 100644 --- a/ui.go +++ b/ui.go @@ -161,6 +161,9 @@ func updateNonConfigColor() { // key map keyMapMenu.SetTextColor(style.ForegroundColor()). + SetText(fmt.Sprintf(keyMapText, + fmt.Sprintf("%.6x", + style.HighLightColor().TrueColor().Hex()))). SetBorderColor(style.HighLightColor()). SetTitleColor(style.HighLightColor()) } @@ -224,9 +227,7 @@ func uiInit() { // key map keyMapMenu.SetBorder(true). SetTitle("Key Map") - keyMapMenu.SetDynamicColors(true). - SetText(fmt.Sprintf(keyMapText, - fmt.Sprintf("%.6x", style.HighLightColor().TrueColor().Hex()))) + keyMapMenu.SetDynamicColors(true) // window translateWindow.SetDirection(tview.FlexColumn).