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:
Sumon Sutrodhar 2023-08-04 11:33:49 +02:00 committed by GitHub
parent f74e16ce07
commit ef53d4c169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}