Update gauge_um.go

Need this change for a personal project
This commit is contained in:
Sumon Sutrodhar 2023-08-04 11:22:59 +02:00 committed by GitHub
parent 71c13a7a36
commit f74e16ce07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,11 @@ 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. // GetValue returns current gauge value.
func (g *UtilModeGauge) GetValue() float64 { func (g *UtilModeGauge) GetValue() float64 {
return g.pc return g.pc