// SetColor sets the node's text color.
350364
func (n *TreeNode) SetColor(color tcell.Color) *TreeNode {
	n.color = color
	return n
}
1226210
func (l *List) SetSelectedTextColor(color tcell.Color) *List {
	l.selectedTextColor = color
	return l
}
451332
func SetColor(status int) string {
	switch status {
	case 0:
		return NotificationColor["green"]
	case 1:
		return NotificationColor["yellow"]
	case 2:
		return NotificationColor["red"]
	case 3:
		return NotificationColor["orange"]
	default:
		return NotificationColor["orange"]
	}
}
57701
func (f *Fpdf) SetTextColor(r, g, b int) {
	f.setTextColor(r, g, b)
}
33470
func (c *Checkbox) SetLabelColor(color tcell.Color) *Checkbox {
	c.labelColor = color
	return c
}
526836
func (c *Checkbox) SetFieldTextColor(color tcell.Color) *Checkbox {
	c.fieldTextColor = color
	return c
}
603718
func (i *InputField) SetLabelColor(color tcell.Color) *InputField {
	i.labelColor = color
	return i
}
1369792
func (c *TableCell) SetText(text string) *TableCell {
	c.Text = text
	return c
}
1285101
func SetColor(tag string, cl *color.Color) {
	privateMutex.Lock()
	defer privateMutex.Unlock()
	// add new theme
	Theme[tag] = cl
}
665015
func (s *Body) SetText(v *Content) *Body {
	s.Text = v
	return s
}
478247
func (palette *Palette) SetColors(colors []Color) error {
	if colors == nil {
		return nil
	}
	var ptr *C.SDL_Color
	if len(colors) > 0 {
		ptr = (*C.SDL_Color)(unsafe.Pointer(&colors[0]))
	}

	r := C.SDL_SetPaletteColors((*C.SDL_Palette)(unsafe.Pointer(palette)),
		ptr, 0, C.int(len(colors)))
	if r != 0 {
		return GetError()
	}
	return nil
}
683600
func (n *TreeNode) SetText(text string) *TreeNode {
	n.text = text
	return n
}
1018719
func (w *VT100Writer) SetColor(fg, bg Color, bold bool) {
	if bold {
		w.SetDisplayAttributes(fg, bg, DisplayBold)
	} else {
		// If using `DisplayDefualt`, it will be broken in some environment.
		// Details are https://github.com/c-bata/go-prompt/pull/85
		w.SetDisplayAttributes(fg, bg, DisplayReset)
	}
	return
}
1108019
func (t *TextView) SetTextColor(color tcell.Color) *TextView {
	t.textColor = color
	return t
}
243750
func (s *DetectDominantLanguageInput) SetText(v string) *DetectDominantLanguageInput {
	s.Text = &v
	return s
}
768956
func (s *SyntaxToken) SetText(v string) *SyntaxToken {
	s.Text = &v
	return s
}
219390
func (b *Button) SetLabelColor(color tcell.Color) *Button {
	b.labelColor = color
	return b
}