Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetColumnColor()第三个参数fount写错了,应该是font #17

Open
xiebruce opened this issue Jul 25, 2023 · 0 comments
Open

SetColumnColor()第三个参数fount写错了,应该是font #17

xiebruce opened this issue Jul 25, 2023 · 0 comments

Comments

@xiebruce
Copy link

SetColumnColor第三个参数fount,正确应该是font,多写了个u

func (tb *Table) SetColumnColor(columnName string, display, fount, background int) {
	background += 10
	for _, col := range tb.Columns.base {
		if col.Original() == columnName {
			col.SetColor(display, fount, background)
			break
		}
	}
}

根据这句col.SetColor(display, fount, background),第二个参数传进后,对应的参数是font

func (h *Column) SetColor(displayType, font, background int) {
	c := new(color.Color)
	c.Display = displayType
	c.Font = font
	c.Background = background
	h.coloredName = c.Combine(h.Original())
	return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant