Bug 162408 - Formulas do not print correctly in dark theme (White-On-White)
Summary: Formulas do not print correctly in dark theme (White-On-White)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/dark-th...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-09 11:13 UTC by John_47
Modified: 2024-12-16 19:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Options dialog with dark theme set (120.50 KB, image/png)
2024-12-16 14:06 UTC, Sam
Details
Document view with dark mode set (74.59 KB, image/png)
2024-12-16 14:07 UTC, Sam
Details
Print preview showing white formula with dark mode set (73.58 KB, image/png)
2024-12-16 14:07 UTC, Sam
Details
PDF generated from Print dialog, showing white formula (11.70 KB, application/pdf)
2024-12-16 14:08 UTC, Sam
Details
PDF generated from export dialog, showing white formula (16.17 KB, application/pdf)
2024-12-16 14:08 UTC, Sam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John_47 2024-08-09 11:13:09 UTC
Description:
Print or export a document created using the dark theme, the formulas do not change color at output. They are there but in white color.

Steps to Reproduce:
1. Open Writer
2. Switch to dark theme (Tools > Options > LibreOffice > Application Colors)
3. Write a formula in the document
4. Print

Actual Results:
Formula is "missing" (it's white on white):
Formula do not print
Formula do not export

Expected Results:
Convert the white text color assigned in the dark theme to black for the print or export. 


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 2; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-EN (es_EN.utf8); UI: en-US
7.6.7-1
Calc: threaded

Thread: https://ask.libreoffice.org/t/dark-theme-messing-with-formulas-text-color-white-on-white-when-print-export/109189
Comment 1 Dieter 2024-08-24 20:28:28 UTC
I can't confirm with

Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded

Formula is visible in print preview
Formula is visible in PDF, created with File -> Export as -> Export as PDF

John, could you please retest with a more recent version of LO? If it still present: What is the result in print preview or in PDF-Export (you haven't specified "Print"-Step
=> NEEDINFO
Comment 2 Sam 2024-12-16 14:05:18 UTC
I'm experiencing this on the latest stable. When the theme is set to "Dark", and the formula is either written in dark mode or the document has been updated after dark mode is turned on (i.e., the formula is displayed as white in the interface), formulas are printed white on a white background in all of the following:
- the print preview dialog,
- PDF printed through the print dialog and a PDF driver, and
- PDF exported through File → Export As → Export as PDF... .

The workaround is to manually change the theme to "Light", refresh the formulas with Tools → Update → Update All and then print, but then I have to do change back to the dark theme and update again to go back to writing in dark mode.

Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92
CPU threads: 14; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 3 Sam 2024-12-16 14:06:34 UTC
Created attachment 198141 [details]
Options dialog with dark theme set
Comment 4 Sam 2024-12-16 14:07:00 UTC
Created attachment 198142 [details]
Document view with dark mode set
Comment 5 Sam 2024-12-16 14:07:28 UTC
Created attachment 198143 [details]
Print preview showing white formula with dark mode set
Comment 6 Sam 2024-12-16 14:08:19 UTC
Created attachment 198144 [details]
PDF generated from Print dialog, showing white formula
Comment 7 Sam 2024-12-16 14:08:40 UTC
Created attachment 198145 [details]
PDF generated from export dialog, showing white formula