Improve progress bar visibility and thickness

- Increase striped progress bar contrast (light: 90→60, dark: 140→200)
- Increase fill opacity (180→200) for better visibility
- Increase progress bar height from 14px to 20px across both striped and standard bars
- Makes progress bars more visible and easier to read at a glance

The striped gradient now has much clearer distinction between light and dark
stripes, and the increased thickness makes progress easier to track visually.
This commit is contained in:
Stu Leak 2025-12-17 13:36:56 -05:00
parent 957b92d8cd
commit 6e4eda93d2
2 changed files with 5 additions and 5 deletions

View File

@ -531,7 +531,7 @@ func (r *conversionStatsRenderer) Layout(size fyne.Size) {
if r.bar.running > 0 && r.bar.progress > 0 {
// Show progress bar on right side
barWidth := float32(120)
barHeight := float32(14)
barHeight := float32(20)
barX := size.Width - barWidth - padding
barY := (size.Height - barHeight) / 2

View File

@ -48,11 +48,11 @@ func (s *stripedProgress) SetProgress(p float64) {
func (s *stripedProgress) CreateRenderer() fyne.WidgetRenderer {
bgRect := canvas.NewRectangle(s.bg)
fillRect := canvas.NewRectangle(applyAlpha(s.color, 180))
fillRect := canvas.NewRectangle(applyAlpha(s.color, 200))
stripes := canvas.NewRaster(func(w, h int) image.Image {
img := image.NewRGBA(image.Rect(0, 0, w, h))
light := applyAlpha(s.color, 90)
dark := applyAlpha(s.color, 140)
light := applyAlpha(s.color, 60)
dark := applyAlpha(s.color, 200)
for y := 0; y < h; y++ {
for x := 0; x < w; x++ {
// animate diagonal stripes using offset
@ -101,7 +101,7 @@ func (r *stripedProgressRenderer) Layout(size fyne.Size) {
}
func (r *stripedProgressRenderer) MinSize() fyne.Size {
return fyne.NewSize(120, 14)
return fyne.NewSize(120, 20)
}
func (r *stripedProgressRenderer) Refresh() {