v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-15 23:30:27 -07:00

fix: change keyMapMenu text HighLightColor

Should change HighLightColor when switching colorscheme.
This commit is contained in:
eeeXun 2022-11-04 23:34:22 +08:00
parent da5fc22258
commit ddce44395d

7
ui.go
View File

@ -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).