Bug 483550 - Kate uses a too light grey for printing text files
Summary: Kate uses a too light grey for printing text files
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-14 13:59 UTC by Lorenzo Bettini
Modified: 2024-09-13 18:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Bettini 2024-03-14 13:59:22 UTC
SUMMARY

Since the switch to KDE Plasma 6, Kate uses a too light grey for printing text files: the result is almost unreadable on printed paper


STEPS TO REPRODUCE
1. open a text file with Kate
2. print it

OBSERVED RESULT

The text is printed on a very light grey

EXPECTED RESULT

The text should be printed as black as it was before

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.2.2

ADDITIONAL INFORMATION

The problem can be seen also in print preview
Comment 1 Christoph Cullmann 2024-03-15 17:59:28 UTC
Printing i a mess and uses and modifies even parts of the current view colors, that will need fixing.
Comment 2 Lorenzo Bettini 2024-03-15 18:31:39 UTC
(In reply to Christoph Cullmann from comment #1)
> Printing i a mess and uses and modifies even parts of the current view
> colors, that will need fixing.

Yes, I forgot to mention that it also modifies the current view colors.
I seem to understand there's a property in katerc for specifying the Printing color scheme, but I find no way of setting that from Kate, and manually setting in katerc doesn't seem to do anything.
Comment 3 Christoph Cullmann 2024-09-13 18:36:08 UTC
Git commit 786fc1c139e56d9e143b1a9a707e28527f1eafd1 by Christoph Cullmann.
Committed on 13/09/2024 at 18:35.
Pushed by cullmann into branch 'master'.

ensure modify the renderer that is used for printing

instead of altering the renderer of the view we do want to
print
Related: bug 465526, bug 488605, bug 487081

M  +7    -7    src/printing/printpainter.cpp

https://invent.kde.org/frameworks/ktexteditor/-/commit/786fc1c139e56d9e143b1a9a707e28527f1eafd1