Fixed a bug which would render the background color of the label in the gauge widget incorrectly.
This bug was introduced in changeset 137d2a7
.
This commit is contained in:
parent
4e7911d1f3
commit
f99b800720
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