-
Notifications
You must be signed in to change notification settings - Fork 312
Closed
Labels
Description
Objective
Replace hardcoded lipgloss.Color("#...") hex strings in pkg/console/progress.go with the centralized adaptive color constants from pkg/styles/theme.go.
Context
Source: discussion #22035 — Terminal Stylist console output audit.
The progress bar currently uses hardcoded Dracula dark-palette hex colors that won't adapt for light-background terminals, breaking the adaptive color contract established throughout the rest of the codebase.
// Current (pkg/console/progress.go ~line 54, 60):
progress.WithColors(lipgloss.Color("#BD93F9"), lipgloss.Color("#8BE9FD"))
prog.EmptyColor = lipgloss.Color("#6272A4")Approach
- Open
pkg/console/progress.go - Replace
lipgloss.Color("#BD93F9")withlipgloss.Color(styles.ColorPurple)(or the appropriate adaptive constant) - Replace
lipgloss.Color("#8BE9FD")withlipgloss.Color(styles.ColorInfo) - Replace
lipgloss.Color("#6272A4")withlipgloss.Color(styles.ColorComment) - Verify the
stylespackage is imported (it may already be)
Check pkg/styles/theme.go for the exact exported names of ColorPurple, ColorInfo, ColorComment (they are defined as compat.AdaptiveColor values).
Files to Modify
pkg/console/progress.go— replace 3 hardcoded hex color values
Acceptance Criteria
- No hardcoded
lipgloss.Color("#...")strings remain inprogress.go - Colors reference adaptive constants from
pkg/styles/ -
make buildpasses -
make lintpasses -
make fmtpasses
Generated by Plan Command for issue #discussion #22035 · ◷
- expires on Mar 23, 2026, 5:17 AM UTC
Reactions are currently unavailable
Metadata
Metadata
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.