diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-27 02:01:06 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-27 02:01:06 -0500 |
commit | f6bda0ee1825c43ecf17fa752cd4c9ac6dde8949 (patch) | |
tree | 1b78a6e6ea850faa62ddb5d4f16bbaf8f754db00 /internal/progress | |
parent | aa323b86f979936cb1c8eda3301e13683f4c5a0f (diff) |
Remove slider background
Diffstat (limited to 'internal/progress')
-rw-r--r-- | internal/progress/progress.go | 9 |
1 files changed, 1 insertions, 8 deletions
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(), ) } } |