Lines Matching refs:bgColor
107 func (g *Gui) SetRune(x, y int, ch rune, fgColor, bgColor Attribute) error {
111 termbox.SetCell(x, y, ch, termbox.Attribute(fgColor), termbox.Attribute(bgColor))
441 var fgColor, bgColor Attribute
444 bgColor = g.SelBgColor
447 bgColor = g.BgColor
450 if err := g.drawFrameEdges(v, fgColor, bgColor); err != nil {
453 if err := g.drawFrameCorners(v, fgColor, bgColor); err != nil {
457 if err := g.drawTitle(v, fgColor, bgColor); err != nil {
471 func (g *Gui) drawFrameEdges(v *View, fgColor, bgColor Attribute) error {
482 if err := g.SetRune(x, v.y0, runeH, fgColor, bgColor); err != nil {
487 if err := g.SetRune(x, v.y1, runeH, fgColor, bgColor); err != nil {
497 if err := g.SetRune(v.x0, y, runeV, fgColor, bgColor); err != nil {
502 if err := g.SetRune(v.x1, y, runeV, fgColor, bgColor); err != nil {
511 func (g *Gui) drawFrameCorners(v *View, fgColor, bgColor Attribute) error {
524 if err := g.SetRune(c.x, c.y, c.ch, fgColor, bgColor); err != nil {
533 func (g *Gui) drawTitle(v *View, fgColor, bgColor Attribute) error {
545 if err := g.SetRune(x, v.y0, ch, fgColor, bgColor); err != nil {