From 52789d8258aa03889768820b73413877ee63b39b Mon Sep 17 00:00:00 2001 From: marigs Date: Tue, 26 May 2015 21:37:04 +0200 Subject: [PATCH] bugfix: added missing changes i.e. some constans needed in Tabpane --- box_others.go | 6 ++++++ example/tabs.go | 4 +--- theme.go | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/box_others.go b/box_others.go index bcc3d7d..ed0f6a6 100644 --- a/box_others.go +++ b/box_others.go @@ -12,3 +12,9 @@ const HORIZONTAL_LINE = '─' const TOP_LEFT = '┌' const BOTTOM_RIGHT = '┘' const BOTTOM_LEFT = '└' +const VERTICAL_LEFT = '┤' +const VERTICAL_RIGHT = '├' +const HORIZONTAL_DOWN = '┬' +const HORIZONTAL_UP = '┴' +const QUOTA_LEFT = '«' +const QUOTA_RIGHT = '»' diff --git a/example/tabs.go b/example/tabs.go index 6bc13b6..14d57b7 100644 --- a/example/tabs.go +++ b/example/tabs.go @@ -1,9 +1,7 @@ package main import ( - "github.com/gizak/termui" - //"fmt" - //"os" + "github.com/marigs/termui" ) func main() { diff --git a/theme.go b/theme.go index c8ad947..0196231 100644 --- a/theme.go +++ b/theme.go @@ -29,6 +29,7 @@ type ColorScheme struct { MBarChartBar Attribute MBarChartText Attribute MBarChartNum Attribute + TabActiveBg Attribute } // default color scheme depends on the user's terminal setting. @@ -58,6 +59,7 @@ var themeHelloWorld = ColorScheme{ MBarChartBar: ColorRed, MBarChartNum: ColorWhite, MBarChartText: ColorCyan, + TabActiveBg: ColorMagenta, } var theme = themeDefault // global dep