Bug 168710 - Text color in chart (auto color) becomes invisible in exported PDF when using dark theme UI
Summary: Text color in chart (auto color) becomes invisible in exported PDF when using...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dark-Mode
  Show dependency treegraph
 
Reported: 2025-10-05 18:36 UTC by dogguscy59
Modified: 2025-10-08 11:06 UTC (History)
1 user (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 dogguscy59 2025-10-05 18:36:07 UTC
Description:
(This issue may be design-related rather than a bug, but affects usability and visual consistency.)

When editing a chart in LibreOffice Writer under a dark theme UI, text elements such as chart titles, axis labels, and legend names appear correctly on screen (white on dark background). However, when the document is exported as a PDF, these texts become invisible because the color remains white against a white background.

It seems that “Automatic” text color adapts to the UI theme in the editing view, but this adaptation is not applied during PDF export — the color is exported as-is (white).

Steps to Reproduce:
1. Open LibreOffice Writer (UI theme: Dark Mode enabled).
2. Insert → Chart.
3. Add a chart title and axis labels (keep text color set to “Automatic”).
4. Export the document to PDF.
5. Open the exported PDF and check the chart.

Actual Results:
The text in the chart (titles, labels, legend) is invisible in the exported PDF.

Expected Results:
The automatic text color should adapt to the document background, or be correctly rendered in the PDF output.


Reproducible: Always


User Profile Reset: No

Additional Info:
Workaround:
Manually setting the text color (e.g., black) in the chart resolves the issue.

Environment:
- LibreOffice version: 7.5.3.2 (x86_64)
- OS: Windows 11 Pro (Dark Mode enabled)
- Component: Writer (Chart object)

Suggested Enhancement:
Consider one of the following:
- Make “Automatic” text color theme-aware during PDF export.
- Or, decouple UI theme color from chart element colors to maintain WYSIWYG consistency.
Comment 1 raal 2025-10-07 18:04:15 UTC
I can confirm with Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8ea8e254a3151f5390f3a10ff156fcaf8e7c5d5c
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 2 giors_00 2025-10-08 11:06:45 UTC
I can confirm this on cahyos (arch linux)

Version: 25.8.1.1 (X86_64) / LibreOffice Community
Build ID: b8b78ba23aae86d510cf2b39c7a2a9bdb3d77d6a
CPU threads: 4; OS: Linux 6.17; UI render: default; VCL: kf6 (cairo+wayland)
Locale: es-ES (es_ES.UTF-8); UI: es-ES
25.8.1-3.1
Calc: threaded