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:
parent
da5fc22258
commit
ddce44395d
7
ui.go
7
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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user