utility-screen/style.go

24 lines
543 B
Go
Raw Normal View History

2015-11-30 14:17:53 +00:00
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
}