mirror of
https://github.com/maaslalani/gambit.git
synced 2025-02-05 13:05:17 +02:00
colors
This commit is contained in:
parent
b36b8af032
commit
1c89a003dd
2
game.go
2
game.go
@ -52,7 +52,7 @@ func (m model) View() string {
|
||||
// Loop through all piece legal moves and see if this square matches any
|
||||
for _, move := range m.legalPieceMoves {
|
||||
if strings.HasSuffix(move.String(), PositionToSquare(lastRow-r, count)) {
|
||||
display = Red.Render(" . ")
|
||||
display = Cyan.Render(" . ")
|
||||
break
|
||||
}
|
||||
}
|
||||
|
3
style.go
3
style.go
@ -7,7 +7,8 @@ import (
|
||||
var (
|
||||
Black = lg.NewStyle().Foreground(lg.Color("4"))
|
||||
Faint = lg.NewStyle().Foreground(lg.Color("8"))
|
||||
Cyan = lg.NewStyle().Foreground(lg.Color("5"))
|
||||
Red = lg.NewStyle().Foreground(lg.Color("1"))
|
||||
Selected = lg.NewStyle().Foreground(lg.Color("2"))
|
||||
Selected = lg.NewStyle().Foreground(lg.Color("6"))
|
||||
White = lg.NewStyle().Foreground(lg.Color("7"))
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user