Merge pull request #38 from Matt3o12/gauge-label
Fixed a bug which would render the background color of a label incorrectly.
This commit is contained in:
commit
0863691428
2
gauge.go
2
gauge.go
@ -97,7 +97,7 @@ func (g *Gauge) Buffer() []Point {
|
|||||||
p.Y = pry
|
p.Y = pry
|
||||||
p.Ch = v
|
p.Ch = v
|
||||||
p.Fg = g.PercentColor
|
p.Fg = g.PercentColor
|
||||||
if w > pos+i {
|
if w+g.innerX > pos+i {
|
||||||
p.Bg = g.BarColor
|
p.Bg = g.BarColor
|
||||||
if p.Bg == ColorDefault {
|
if p.Bg == ColorDefault {
|
||||||
p.Bg |= AttrReverse
|
p.Bg |= AttrReverse
|
||||||
|
Loading…
Reference in New Issue
Block a user