fix color codes

This commit is contained in:
Alexander Wang 2023-02-23 17:15:29 -08:00
parent 994ec12c34
commit 0fe1c6d0cf
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -41,8 +41,10 @@ func Darken(colorString string) (string, error) {
case colorString[0:2] == "AB":
switch colorString[2] {
case '4', '5':
case '4':
return AB4, nil
case '5':
return AB5, nil
}
case colorString[0] == 'N':
@ -135,7 +137,7 @@ const (
// Alternative colors B
AB4 = "AB4"
AB5 = "AB4"
AB5 = "AB5"
// Special
Empty = ""