mirror of
https://github.com/eeeXun/GTT.git
synced 2025-07-01 06:00:28 -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
|
// key map
|
||||||
keyMapMenu.SetTextColor(style.ForegroundColor()).
|
keyMapMenu.SetTextColor(style.ForegroundColor()).
|
||||||
|
SetText(fmt.Sprintf(keyMapText,
|
||||||
|
fmt.Sprintf("%.6x",
|
||||||
|
style.HighLightColor().TrueColor().Hex()))).
|
||||||
SetBorderColor(style.HighLightColor()).
|
SetBorderColor(style.HighLightColor()).
|
||||||
SetTitleColor(style.HighLightColor())
|
SetTitleColor(style.HighLightColor())
|
||||||
}
|
}
|
||||||
@ -224,9 +227,7 @@ func uiInit() {
|
|||||||
// key map
|
// key map
|
||||||
keyMapMenu.SetBorder(true).
|
keyMapMenu.SetBorder(true).
|
||||||
SetTitle("Key Map")
|
SetTitle("Key Map")
|
||||||
keyMapMenu.SetDynamicColors(true).
|
keyMapMenu.SetDynamicColors(true)
|
||||||
SetText(fmt.Sprintf(keyMapText,
|
|
||||||
fmt.Sprintf("%.6x", style.HighLightColor().TrueColor().Hex())))
|
|
||||||
|
|
||||||
// window
|
// window
|
||||||
translateWindow.SetDirection(tview.FlexColumn).
|
translateWindow.SetDirection(tview.FlexColumn).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user