status of theme support on Windows and unreadable items
Ingo Klöcker
kloecker at kde.org
Mon Nov 17 18:11:41 GMT 2025
On Sonntag, 16. November 2025 09:06:04 Mitteleuropäische Normalzeit Thomas
Baumgart wrote:
> On Dienstag, 4. November 2025 08:34:18 CET Ingo Klöcker via KMyMoney-devel
wrote:
> > On Dienstag, 4. November 2025 02:48:04 Mitteleuropäische Normalzeit Jack
> > via>
> > KMyMoney-devel wrote:
> > > There have been multiple recent bugs and Discuss threads regarding
> > > issues with Windows themes resulting in either transactions or ledger
> > > header lines being displayed with background and foreground colors
> > > either the same or too close for the text to be readable. Are all the
> > > solutions offered so far only workarounds for Windows handling of
> > > themes or perhaps KMM's interaction with Windows handling of themes, or
> > > is there any better understanding of the underlying problem?
> >
> > I'm wondering if KMyMoney uses custom colors for certain UI elements (via
> > stylesheets or by explicitly setting palette colors) or whether it relies
> > on the widget style. If it's the former then this is would point to wrong
> > assumptions about foreground and background colors when setting custom
> > colors. On the other hand, if KMyMoney relies on the widget style (which
> > should always be Breeze on Windows) then things can likely be fixed in
> > the Breeze style. I have fixed a few things in Breeze with regards to
> > Windows' High Contrast color themes that I noticed while working on
> > Kleopatra for Windows. I'm not aware of issues with Breeze Light or
> > Breeze Dark on Windows. If KMyMoney doesn't do so already I strongly
> > suggest that KMyMoney uses KColorScheme and the Breeze color schemes on
> > Windows.
>
> KMyMoney uses KColorScheme and the widget style. Yesterday, I made this
> change
>
> https://invent.kde.org/office/kmymoney/-/commit/d9fda547
>
> which solves the problem.
Looks good. Yes, HighlightText must always be used with Highlight as
background.
> The same problem in fact is also present in the
> KPageView widget which also has been reported by (KMyMoney) users and is
> reproducible for me on Win10 by starting KMyMoney with the option
> --style=windows11.
Yeah, some of the KDE components are "optimized" for usage with Breeze. I have
fixed quite a few problems that became very visible with some of Windows's
high-contrast color themes.
> @Ingo: do you know of a method to build a KMyMoney windows executable using
> KDE's craft build system with the framework/kwidgetaddons of a specific
> branch? Or is this not even possible?
Using a specific branch is not possible. You can tell Craft to use a specific
released version, but only if this version is actually listed in the
frameworks blueprints version.ini:
https://invent.kde.org/packaging/craft-blueprints-kde/-/blob/master/kde/
frameworks/version.ini?ref_type=heads
Additonally, you can tell Craft to use the master version.
You do this the same way that you request Craft to use alkimia master, i.e. by
adding something like
kde/frameworks/tier1/kwidgetsaddons.version=master
to kmymoney's .craft.ini.
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 265 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20251117/d5ab5d6e/attachment.sig>
More information about the KMyMoney-devel
mailing list