Bug 166409 - Dark mode: entered formulas are in wrong color when printing
Summary: Dark mode: entered formulas are in wrong color when printing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LibreOffice-Themes Dark-Mode
  Show dependency treegraph
 
Reported: 2025-04-30 19:56 UTC by Peter
Modified: 2025-05-01 15:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2025-04-30 19:56:15 UTC
Description:
If one enters a formula while writer is in dark mode, it is stored with white letters.

Later when printing, it won't appear on paper (as it is white) and it does not follow when the writer is switched back to light mode.

Steps to Reproduce:
1. Switch Gnome to dark mode (app follows)
2. Enter OLE formula
3. Print doc/export doc, it will be white on white paper
4. Switch DE to light mode, formulas will still be white

Actual Results:
Formulas stay white

Expected Results:
Formulas are printed in black and follow color schema


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Flatpak
Calc: threaded
Comment 1 V Stuart Foote 2025-05-01 15:10:59 UTC
Confirmed, likewise affecting recent builds of master against 25.8.0

No LO Appearance theme applied, just the os/DE provided 'System' color sense of Light or Dark scheme. Start from os/DE Dark sense.

STR:
1. os/DE color sense Dark
2. LO in 'System'
3. Writer document bg responds with a dark document bg and light fg
4. insert OLE Formula, pick any from the sm Formula Elements -> Examples
5a. print preview, result?
5b. export to PDF, result?

The OLE object gets a non-visible light fg on print/export, while document bg which correctly toggles to light for the print/export. Formula OLE is not readable. Normal Paragraph text correctly toggles and is visible.

=-testing-=
20250426 TB77 nightly
Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 28; 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


Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 28; 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