From f6bda0ee1825c43ecf17fa752cd4c9ac6dde8949 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 27 Dec 2024 02:01:06 -0500 Subject: Remove slider background --- internal/progress/progress.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'internal/progress/progress.go') diff --git a/internal/progress/progress.go b/internal/progress/progress.go index 1e00836..9a3b37e 100644 --- a/internal/progress/progress.go +++ b/internal/progress/progress.go @@ -165,8 +165,6 @@ type Model struct { // "Filled" sections of the progress bar. FullColor string - EmptyColor string - // Settings for rendering the numeric percentage. ShowPercentage bool PercentFormat string // a fmt string for a float @@ -200,7 +198,6 @@ func New(opts ...Option) Model { Width: defaultWidth, FillSteps: defaultFillSteps(), FullColor: "#7571F9", - EmptyColor: "#606060", ShowPercentage: true, PercentFormat: " %3.0f%%", colorProfile: termenv.ColorProfile(), @@ -332,17 +329,13 @@ func (m Model) barView(b *strings.Builder, percent float64, textWidth int) { b.WriteString( termenv.String(string(step.rune)). Foreground(m.color(color)). - Background(m.color(m.EmptyColor)). String(), ) } else { // Empty cell emptyStep := m.FillSteps[0] b.WriteString( - termenv.String(string(emptyStep.rune)). - Foreground(m.color(m.EmptyColor)). - Background(m.color(m.EmptyColor)). - String(), + termenv.String(string(emptyStep.rune)).String(), ) } } -- cgit v1.2.3