gopher-battle/style.go
2016-01-06 12:24:08 -06:00

24 lines
543 B
Go

package main
import "github.com/nsf/termbox-go"
type style struct {
defaultBg termbox.Attribute
defaultFg termbox.Attribute
titleBg termbox.Attribute
titleFg termbox.Attribute
cursorBg termbox.Attribute
cursorFg termbox.Attribute
}
func defaultStyle() style {
var style style
style.defaultBg = termbox.ColorBlack
style.defaultFg = termbox.ColorWhite
style.titleBg = style.defaultBg
style.titleFg = style.defaultFg | termbox.AttrBold
style.cursorBg = termbox.ColorWhite
style.cursorFg = termbox.ColorBlack
return style
}