boltbrowser/style.go

28 lines
598 B
Go
Raw Normal View History

2015-05-18 14:47:08 +00:00
package main
import "github.com/nsf/termbox-go"
2015-09-17 16:49:57 +00:00
/*
Style Defines the colors for the terminal display, basically
*/
2015-05-18 14:47:08 +00:00
type Style struct {
2015-09-17 16:49:57 +00:00
defaultBg termbox.Attribute
defaultFg termbox.Attribute
titleFg termbox.Attribute
titleBg termbox.Attribute
cursorFg termbox.Attribute
cursorBg termbox.Attribute
2015-05-18 14:47:08 +00:00
}
func defaultStyle() Style {
var style Style
2015-09-17 16:49:57 +00:00
style.defaultBg = termbox.ColorBlack
style.defaultFg = termbox.ColorWhite
style.titleFg = termbox.ColorBlack
style.titleBg = termbox.ColorGreen
style.cursorFg = termbox.ColorBlack
style.cursorBg = termbox.ColorGreen
2015-05-18 14:47:08 +00:00
return style
}