tis100e/style.go

24 lines
557 B
Go

package main
import "github.com/nsf/termbox-go"
type Style struct {
default_bg termbox.Attribute
default_fg termbox.Attribute
title_bg termbox.Attribute
title_fg termbox.Attribute
cursor_bg termbox.Attribute
cursor_fg termbox.Attribute
}
func defaultStyle() Style {
var style Style
style.default_bg = termbox.ColorBlack
style.default_fg = termbox.ColorWhite
style.title_bg = style.default_bg
style.title_fg = style.default_fg | termbox.AttrBold
style.cursor_bg = termbox.ColorWhite
style.cursor_fg = termbox.ColorBlack
return style
}