fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
23.95k stars 1.34k forks source link

Poor contrast for progressbar text #4845

Open Jacalz opened 1 month ago

Jacalz commented 1 month ago

Checklist

Describe the bug

As initially reported in https://github.com/Jacalz/rymdport/issues/115, the widget.ProgressBar component has poor contrast for the text in the case where the progress bar hasn't covered the progress background yet. Both the light and dark themes exhibit poor contrast initially but good contrast later on. See screenshots below.

How to reproduce

  1. Open up fyne_demo.
  2. Go to the Widgets -> Progress page.
  3. Notice that the text contrast is poor initially but turns good once the progress reaches ahead of the text.

Screenshots

Dark theme:

Poor contrast for text in the dark region of the progress bar:

image

Good contrast for text in the light region of the progress bar:

image

Light theme

Poor contrast for text in the light region of the progress bar:

image

Good contrast for text in the dark region of the progress bar:

image

Example code

See fyne_demo.

Fyne version

v2.4.5

Go compiler version

1.22.3

Operating system and version

Fedora Silverblue 40

Additional Information

No response

andydotxyz commented 3 weeks ago

This probably relates to #4929

toaster commented 3 weeks ago

Yes, I’ve already a fix for the progressbar in my PR queue.

toaster commented 3 weeks ago

Sneak preview:

grafik grafik