Skip to content

Commit

Permalink
Merge pull request #176 from uptrace/fix/bundebug-colors
Browse files Browse the repository at this point in the history
chore: tweak bundebug colors
  • Loading branch information
vmihailenco authored Sep 9, 2021
2 parents bc83d99 + b9a9a87 commit 2deea96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extra/bundebug/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ func queryOperation(name string) string {
func operationColor(operation string) *color.Color {
switch operation {
case "SELECT":
return color.New(color.BgGreen)
return color.New(color.BgGreen, color.FgHiWhite)
case "INSERT":
return color.New(color.BgBlue)
return color.New(color.BgBlue, color.FgHiWhite)
case "UPDATE":
return color.New(color.BgYellow)
return color.New(color.BgYellow, color.FgHiBlack)
case "DELETE":
return color.New(color.BgRed)
return color.New(color.BgMagenta, color.FgHiWhite)
default:
return color.New(color.FgBlack, color.BgWhite)
return color.New(color.BgWhite, color.FgHiBlack)
}
}

0 comments on commit 2deea96

Please sign in to comment.