1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-25 12:24:47 +02:00

better colour

This commit is contained in:
Jesse Duffield 2022-03-27 17:58:30 +11:00
parent 860d1e0145
commit 897c4402a4
2 changed files with 2 additions and 3 deletions

View File

@ -88,7 +88,7 @@ func (self *MenuViewModel) GetDisplayStrings(_startIdx int, _length int) [][]str
return slices.Map(self.menuItems, func(item *types.MenuItem) []string {
displayStrings := getItemDisplayStrings(item)
if showKeys {
displayStrings = slices.Prepend(displayStrings, style.FgYellow.Sprint(keybindings.GetKeyDisplay(item.Key)))
displayStrings = slices.Prepend(displayStrings, style.FgCyan.Sprint(keybindings.GetKeyDisplay(item.Key)))
}
return displayStrings
})

View File

@ -7,7 +7,6 @@ import (
"github.com/jesseduffield/generics/slices"
"github.com/jesseduffield/lazygit/pkg/gui/keybindings"
"github.com/jesseduffield/lazygit/pkg/gui/presentation"
"github.com/jesseduffield/lazygit/pkg/gui/style"
"github.com/jesseduffield/lazygit/pkg/gui/types"
"github.com/samber/lo"
)
@ -57,7 +56,7 @@ func (gui *Gui) displayDescription(binding *types.Binding) string {
return presentation.OpensMenuStyle(binding.Description)
}
return style.FgCyan.Sprint(binding.Description)
return binding.Description
}
func (gui *Gui) handleCreateOptionsMenu() error {