Bug 492656

Summary: Barely readable sizes while updates are installed
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: aleixpol, kdedev, nate
Priority: NOR Keywords: usability
Version: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.4
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2024-09-04 16:14:33 UTC
Created attachment 173327 [details]
screenshot

STEPS TO REPRODUCE
1. open Discover when updates are available
2. install all updates
3. observe the size of the updates while Discover installs them

OBSERVED RESULT
barely readable sizes, as we can see in the attached screenshot

EXPECTED RESULT
better readability

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-09-05 19:25:11 UTC
Can confirm. It's a tricky problem because the bar and background are different colors, so theoretically each one needs a different text color to maintain readability (at least in principle).

Maybe we can cheat a bit a tweak the colors so that they both look good behind a single text color, and then change the text color to that.
Comment 2 Bug Janitor Service 2024-11-08 20:30:26 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/968
Comment 3 Nate Graham 2024-11-08 22:57:29 UTC
Git commit 2ea20cae225a55382b51df0e0ef485cd05010cac by Nate Graham.
Committed on 08/11/2024 at 20:26.
Pushed by ngraham into branch 'master'.

TransactionProgressIndicator: improve text readability

Previously it would alternate between the text color and highlighted
text color, but this didn't work since the highlighted text color is
only guaranteed to be readable on top of something using the highlight
color, and that couldn't be guaranteed here.

By contrast, the text color always works here, especially with a small
tweak to the colored area to desaturate it a tiny bit.
FIXED-IN: 6.2.4

M  +2    -2    discover/qml/TransactionProgressIndicator.qml

https://invent.kde.org/plasma/discover/-/commit/2ea20cae225a55382b51df0e0ef485cd05010cac
Comment 4 Nate Graham 2024-11-08 23:02:22 UTC
Git commit c2a5e5e2d84960014ac462dda0ced8ea0a823592 by Nate Graham.
Committed on 08/11/2024 at 23:02.
Pushed by ngraham into branch 'Plasma/6.2'.

🍒 LabelBackground: improve text readability

Previously it would alternate between the text color and highlighted
text color, but this didn't work since the highlighted text color is
only guaranteed to be readable on top of something using the highlight
color, and that couldn't be guaranteed here.

By contrast, the text color always works here, especially with a small
tweak to the colored area to desaturate it a tiny bit.
FIXED-IN: 6.2.4


(cherry picked from commit 2ea20cae225a55382b51df0e0ef485cd05010cac)

Co-authored-by: Nate Graham <nate@kde.org>

M  +2    -2    discover/qml/LabelBackground.qml

https://invent.kde.org/plasma/discover/-/commit/c2a5e5e2d84960014ac462dda0ced8ea0a823592