Bug 429469 - Text not visible in print-out when using dark theme
Summary: Text not visible in print-out when using dark theme
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.0
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
: 451994 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-21 17:53 UTC by Paul Worrall
Modified: 2022-04-11 12:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Worrall 2020-11-21 17:53:40 UTC
SUMMARY
If I have selected a dark global theme (Breeze Dark), KMyMoney displays fine, with light text on a dark background, but if I select "Print" from the home page  light text prints in a light colour, which is not visible on white paper.

Very minor bug :-)
Comment 1 Paul Worrall 2020-12-09 15:58:45 UTC
Also, using the cheque printing addin, it prints in black text on a black background (expensive on ink!)
Comment 2 Ralf Habacker 2021-11-18 08:17:16 UTC
This problem was investigated at https://invent.kde.org/office/kmymoney/-/merge_requests/118#note_336185. The reason for this problem is a bug in one of the Qt libraries, see https://bugreports.qt.io/browse/QTBUG-98408.
Comment 3 Ralf Habacker 2021-11-18 09:20:44 UTC
(In reply to Ralf Habacker from comment #2)
> see https://bugreports.qt.io/browse/QTBUG-98408.

Note: The bug report refers to the use of QTextDocument-based widgets in kmymoney. If this problem also occurs with KWebView (WebKit) or QWebEngineView, that would need to be investigated.
Comment 4 Dawid Wróbel 2022-03-14 22:51:07 UTC
Git commit 27fc5b843a5f2ffd00d01d9540fdbe56d3197c48 by Dawid Wróbel.
Committed on 14/03/2022 at 13:02.
Pushed by wrobelda into branch 'master'.

Print, Print Preview: use correct CSS @media block

Works around the https://bugreports.qt.io/browse/QTBUG-98408 issue.

Adds new KMMTextBrowser type, overriding QTextBrowser.
Related: bug 417104

M  +13   -0    kmymoney/misc/CMakeLists.txt
A  +51   -0    kmymoney/misc/kmmtextbrowser.cpp     [License: GPL(v2.0+)]
A  +28   -0    kmymoney/misc/kmmtextbrowser.h     [License: GPL(v2.0+)]
M  +1    -0    kmymoney/plugins/reconciliationreport/CMakeLists.txt
M  +3    -3    kmymoney/plugins/reconciliationreport/kreconciliationreportdlg.cpp
M  +3    -3    kmymoney/plugins/reconciliationreport/kreconciliationreportdlg.h
M  +1    -0    kmymoney/plugins/views/reports/CMakeLists.txt
M  +1    -1    kmymoney/plugins/views/reports/kreportsview.h
M  +14   -14   kmymoney/plugins/views/reports/kreportsview_p.h
M  +1    -0    kmymoney/views/CMakeLists.txt
M  +1    -0    kmymoney/views/khomeview.h
M  +17   -17   kmymoney/views/khomeview_p.h

https://invent.kde.org/office/kmymoney/commit/27fc5b843a5f2ffd00d01d9540fdbe56d3197c48
Comment 5 Paul Worrall 2022-04-11 12:05:31 UTC
*** Bug 451994 has been marked as a duplicate of this bug. ***