Bug 510312

Summary: Highlighted transaction in ledger now unreadable as highlight is white on white
Product: [Applications] kmymoney Reporter: Lawrence Wright <lwright>
Component: ux-uiAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: normal CC: a.urso, kloecker
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Broken display
Correct display

Description Lawrence Wright 2025-10-06 18:15:15 UTC
Created attachment 185558 [details]
Broken display

SUMMARY

The ledger view is really hard to use on recent KMyMoney 5.2 builds as the highlighted transaction is now white on white, rather than white text with a blue background. From the versions I have easily available:

Version 5.2.1-4b18ddd (5.2-4851) - Broken
Version 5.2.1-14d2930 (5.2-4845) - Broken
Version 5.2.1-0683f36 (5.2-4820) - OK

STEPS TO REPRODUCE
1. Install affected version
2. Go to ledger
3. Move up and down through transactions and watch them disappear as they're highlighted

OBSERVED RESULT

Transaction "disappears" as display is same-colour on same-colour (e.g. white text on a white background)

EXPECTED RESULT

Transaction highlighted with dark background (e.g.) blue and white text

SOFTWARE/OS VERSIONS
Windows: 24H2

ADDITIONAL INFORMATION

Please see attachments for screenshots
Comment 1 Lawrence Wright 2025-10-06 18:15:38 UTC
Created attachment 185559 [details]
Correct display
Comment 2 Adilson Urso 2025-10-08 12:10:20 UTC
I have the same problem, the selected ledger row is unreadable.
Version 5.2.1-4b18ddd (Windows 11 24H2)
Comment 3 Thomas Baumgart 2025-10-09 11:18:02 UTC
Very strange. The only relevant code change between

Version 5.2.1-14d2930 (5.2-4845) - Broken
Version 5.2.1-0683f36 (5.2-4820) - OK

is https://invent.kde.org/office/kmymoney/-/commit/a31e15fc and I don't see how this could influence the foreground and/or background color.  Plus, it only happens on Windows. I can't duplicate it here on Linux using Qt5 nor Qt6.
Comment 4 Ingo Klöcker 2025-10-09 12:03:30 UTC
The newer build uses a different Craft cache (which means that something basic changed). Could be the update to Qt 6.9.2.
Comment 5 Thomas Baumgart 2025-10-09 14:44:35 UTC
I doubt that: The build kmymoney-5.2-4867-windows-cl-msvc2022-x86_64.exe works just fine on Win10. To me this seems another problem introduced by/on Win11.
Comment 6 Ingo Klöcker 2025-10-09 15:12:42 UTC
Thomas: Which style does KMyMoney use on Windows? Breeze?

Lawrence: Does the problem also occur if you start KMyMoney from cmd.exe with `kmymoney -style fusion` or `kmymoney -style windows`?
Comment 7 Lawrence Wright 2025-10-09 15:57:17 UTC
Hi Ingo,

Launching from cmd.exe

kmymoney = has issue
kmymoney -style fusion = works correctly
kmymoney -style windows = works correctly

Hope that helps!

Lawrence.
Comment 8 Thomas Baumgart 2025-10-10 08:44:42 UTC
(In reply to Ingo Klöcker from comment #6)
> Thomas: Which style does KMyMoney use on Windows? Breeze?
If KStyleManager is not available it uses breeze. See

https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/main.cpp?ref_type=heads#L108-L120
Comment 9 Ingo Klöcker 2025-10-10 10:15:49 UTC
So it could be a regression in Breeze? I assume KMyMoney uses a pretty basic (when it comes to row rendering) QTreeView with alternating row colors.