mirror of
https://github.com/navidys/tvxwidgets.git
synced 2025-05-07 19:29:14 +08:00
Update gauge_um.go
Need this change for a personal project Signed-off-by: Sumon Sutrodhar (Junor Developer) <sumon94s@hotmail.com>
This commit is contained in:
parent
f74e16ce07
commit
ef53d4c169
10
gauge_um.go
10
gauge_um.go
@ -89,11 +89,6 @@ func (g *UtilModeGauge) SetValue(value float64) {
|
||||
}
|
||||
}
|
||||
|
||||
// SetEmptyColor sets empty gauge color.
|
||||
func (g *UtilModeGauge) SetEmptyColor (color tcell.Color) {
|
||||
g.emptyColor = color
|
||||
}
|
||||
|
||||
// GetValue returns current gauge value.
|
||||
func (g *UtilModeGauge) GetValue() float64 {
|
||||
return g.pc
|
||||
@ -157,3 +152,8 @@ func (g *UtilModeGauge) getBarColor(percentage float64) tcell.Color {
|
||||
|
||||
return g.critColor
|
||||
}
|
||||
|
||||
// SetEmptyColor sets empty gauge color.
|
||||
func (g *UtilModeGauge) SetEmptyColor (color tcell.Color) {
|
||||
g.emptyColor = color
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user