mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-15 10:06:26 -04:00
Remove the magenta color on menu items that open a menu
It's distracting. But keep the ellipsis.
This commit is contained in:
parent
37381b610d
commit
94bf279b5a
|
|
@ -1,7 +1,8 @@
|
|||
package gui
|
||||
|
||||
import (
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/presentation"
|
||||
"fmt"
|
||||
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
||||
"github.com/jesseduffield/lazygit/pkg/theme"
|
||||
"github.com/jesseduffield/lazygit/pkg/utils"
|
||||
|
|
@ -27,7 +28,7 @@ func (gui *Gui) createMenu(opts types.CreateMenuOptions) error {
|
|||
}
|
||||
|
||||
if item.OpensMenu {
|
||||
item.LabelColumns[0] = presentation.OpensMenuStyle(item.LabelColumns[0])
|
||||
item.LabelColumns[0] = fmt.Sprintf("%s...", item.LabelColumns[0])
|
||||
}
|
||||
|
||||
maxColumnSize = utils.Max(maxColumnSize, len(item.LabelColumns))
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
package presentation
|
||||
|
||||
import "github.com/jesseduffield/lazygit/pkg/gui/style"
|
||||
|
||||
func OpensMenuStyle(str string) string {
|
||||
return style.FgMagenta.Sprintf("%s...", str)
|
||||
}
|
||||
Loading…
Reference in a new issue