https://bugs.kde.org/show_bug.cgi?id=487081

            Bug ID: 487081
           Summary: Dark theme, Print Preview shows empty, prints white
                    text on white background.
    Classification: Applications
           Product: kate
           Version: 24.02.2
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: typing...@gmail.com
  Target Milestone: ---

Created attachment 169521
  --> https://bugs.kde.org/attachment.cgi?id=169521&action=edit
Wrote "Hello" and printed it to a PDF file.

SUMMARY

When Plasma is using dark theme, selecting File -> Print/Export -> Print
Preview seems to change the theme of the editor view to "Printing". The editor
shows black text on white background, but the preview dialogue itself is using
white text on white background; I see nothing. 

I clicked the print button and chose PDF. The PDF looked empty. When I tried
text selection tool, it seemed that I could select something. I copied it and
pasted it into a text editor, and the text was there. So, the PDF is using
white text on white background.

Isn't it a bug that invoking the print preview changes the editor's theme? I
have to change it back, which is cumbersome. The preview is showing in a
separate pop-up window, so I am not sure if it is necessary to change the
editor's theme. At least shouldn't KWrite change editor's theme back when the
preview window is closed?

Also it seems that on a monitor with fractional scaling, the window size of
print preview is very small and I have to resize it every time.

Both Kate/KWrite seem to do exactly the same thing.


STEPS TO REPRODUCE
1.  Set dark mode for Plasma, and a dark theme for the editor
2.  Print Preview
3. Print to PDF 

OBSERVED RESULT
White text on paper

EXPECTED RESULT
Black text on paper

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux, Wayland
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Attaching the printed PDF page. It has "Hello" on it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to