KWrite and Kate 24.05.2, Plasma 6 Desktop, Arch Linux - updated today.
Printing in light mode (yes i’m really talking about the desktop theme here) works as expected. But I use the dark mode and here the text on the paper is light gray (barely readable) and not black.
You can reproduce this by “printing” a standard text file (no syntax highlighting selected) to a PDF file.
Got the same over here. I’m using Fedora KDE Plasma Desktop 40 using the Breeze Dark theme. When you navigate to File → Print/Export → Print Preview you can see that the text is grey.
Same here. The best part is that on top of this, the document switches to dark text on a white background, until I close and reopen it. But the printed result is with light gray text.
I assume it’s not supposed to stay on the printing theme once it’s done printing. This goes against the expected behavior in essentially very other app that has a dark mode, and it especially makes no sense considering any newly created or opened documents go back to the dark theme
the printing itself doesn’t even seem to follow the printing theme - as written above, it prints with light gray text, even though the printing theme is with black text.
Maybe I’m misunderstanding your answer, but you do agree that this is a bug, yes?
Yes, I agree and I think this is a bug. This behavior is absolutely atypical and I don’t understand why the visual display influences the print settings anyway.
If so, IMO the best thing to do (if you’re not able to dive into code - no judgment, I’m not either) would be contributing any additional observations, context, screenshots, etc. that you’ve seen on your device that would help folks investigate this bug.
The editor color scheme „Printing“ never gets used. Changing that scheme to „Printing“ for the preview or actual printing doesn’t effect anything, so I removed it entirely from kateprinter.cpp. That’s less annoying.
It get’s even more confusing if I print a file with syntax highlighting - .cpp for example. The colors in the preview are different using a light or dark window theme.
If you use any light window theme, the print preview will show the colors of the editor theme “Breeze Light”. For any dark window theme, the print preview will show the colors of the editor theme “Breeze Dark”.
Now I’m looking for the code that distinguishes between dark and light themes when preparing the printout. Maybe the bug is one layer deeper in the Qt code, because I still can’t find anything here.