bugfix: added missing changes i.e. some constans needed in Tabpane

This commit is contained in:
marigs 2015-05-26 21:37:04 +02:00
parent 5a0bce64fa
commit 52789d8258
3 changed files with 9 additions and 3 deletions

View File

@ -12,3 +12,9 @@ const HORIZONTAL_LINE = '─'
const TOP_LEFT = '┌' const TOP_LEFT = '┌'
const BOTTOM_RIGHT = '┘' const BOTTOM_RIGHT = '┘'
const BOTTOM_LEFT = '└' const BOTTOM_LEFT = '└'
const VERTICAL_LEFT = '┤'
const VERTICAL_RIGHT = '├'
const HORIZONTAL_DOWN = '┬'
const HORIZONTAL_UP = '┴'
const QUOTA_LEFT = '«'
const QUOTA_RIGHT = '»'

View File

@ -1,9 +1,7 @@
package main package main
import ( import (
"github.com/gizak/termui" "github.com/marigs/termui"
//"fmt"
//"os"
) )
func main() { func main() {

View File

@ -29,6 +29,7 @@ type ColorScheme struct {
MBarChartBar Attribute MBarChartBar Attribute
MBarChartText Attribute MBarChartText Attribute
MBarChartNum Attribute MBarChartNum Attribute
TabActiveBg Attribute
} }
// default color scheme depends on the user's terminal setting. // default color scheme depends on the user's terminal setting.
@ -58,6 +59,7 @@ var themeHelloWorld = ColorScheme{
MBarChartBar: ColorRed, MBarChartBar: ColorRed,
MBarChartNum: ColorWhite, MBarChartNum: ColorWhite,
MBarChartText: ColorCyan, MBarChartText: ColorCyan,
TabActiveBg: ColorMagenta,
} }
var theme = themeDefault // global dep var theme = themeDefault // global dep