2015-04-24 22:53:33 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "github.com/nsf/termbox-go"
|
|
|
|
|
|
|
|
type Style struct {
|
|
|
|
default_bg termbox.Attribute
|
|
|
|
default_fg termbox.Attribute
|
2015-04-28 15:05:24 +00:00
|
|
|
title_fg termbox.Attribute
|
|
|
|
title_bg termbox.Attribute
|
|
|
|
cursor_fg termbox.Attribute
|
|
|
|
cursor_bg termbox.Attribute
|
2015-04-24 22:53:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func defaultStyle() Style {
|
|
|
|
var style Style
|
2015-04-28 15:05:24 +00:00
|
|
|
style.default_bg = termbox.ColorBlack
|
|
|
|
style.default_fg = termbox.ColorWhite
|
|
|
|
style.title_fg = termbox.ColorBlack
|
2015-05-05 01:17:41 +00:00
|
|
|
style.title_bg = termbox.ColorGreen
|
2015-04-28 15:05:24 +00:00
|
|
|
style.cursor_fg = termbox.ColorBlack
|
2015-05-05 01:17:41 +00:00
|
|
|
style.cursor_bg = termbox.ColorGreen
|
2015-04-24 22:53:33 +00:00
|
|
|
|
|
|
|
return style
|
|
|
|
}
|