diff --git a/cp-main.go b/cp-main.go index f7b844ec..28fdf0d9 100644 --- a/cp-main.go +++ b/cp-main.go @@ -314,7 +314,6 @@ func mainCopy(ctx *cli.Context) { console.SetCustomTheme(map[string]*color.Color{ "Copy": color.New(color.FgGreen, color.Bold), - "Bar": color.New(color.FgGreen, color.Bold), }) session := newSessionV2() diff --git a/mirror-main.go b/mirror-main.go index 48fb2064..5c414b9e 100644 --- a/mirror-main.go +++ b/mirror-main.go @@ -314,7 +314,6 @@ func mainMirror(ctx *cli.Context) { console.SetCustomTheme(map[string]*color.Color{ "Mirror": color.New(color.FgGreen, color.Bold), - "Bar": color.New(color.FgGreen, color.Bold), }) var e error diff --git a/pb.go b/pb.go index f2d0c1ca..82160340 100644 --- a/pb.go +++ b/pb.go @@ -25,6 +25,7 @@ import ( "time" "github.com/dustin/go-humanize" + "github.com/fatih/color" "github.com/minio/minio/pkg/probe" "github.com/minio/pb" "github.com/olekukonko/ts" @@ -147,6 +148,9 @@ func getFixedWidth(width, percent int) int { // newProgressBar - instantiate a pbBar. func newProgressBar() barSend { + console.SetCustomTheme(map[string]*color.Color{ + "Bar": color.New(color.FgGreen, color.Bold), + }) cmdCh := make(chan barMsg) finishCh := make(chan bool) go func(cmdCh <-chan barMsg, finishCh chan<- bool) {