Bug 167737 - In Dark Mode, when leaving chart back to Calc, label font becomes black
Summary: In Dark Mode, when leaving chart back to Calc, label font becomes black
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:26.8.0 target:26.2.0.2 target:...
Keywords: bibisected, bisected
Depends on:
Blocks: Chart Dark-Mode
  Show dependency treegraph
 
Reported: 2025-07-30 22:57 UTC by Eyal Rozenberg
Modified: 2026-01-25 18:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Calc 26.2 Dark - within new chart (49.38 KB, image/png)
2025-07-30 23:10 UTC, Eyal Rozenberg
Details
Calc 26.2 Dark - after exiting new chart (62.29 KB, image/png)
2025-07-30 23:11 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2025-07-30 22:57:17 UTC
Reproduction instructions:

1. In Calc, navigate to Tools > Options > LibreOffice > Appearance
2. Choose the Dark theme (and ensure no other UI customizations).
3. Enter some data.
4. Create a Column-type chart using your data
5. Make sure there are labels, e.g. a Legend and Axis labels
6. Leave the Chart area by double-clicking outside of it.
7. (Possibly) resize the chart

Expected results:
Chart labels appear in White, or nearly-white, color over the dark background, both when the Chart window is active and when outside of it, in Calc.

Actual results:
When leaving the Chart for Calc, sometimes the label text becomes black; at other times, the labels don't turn black, but resizing the chart makes them black.

Build info:

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7ef1c437f30b0869a5b9fa33809bac2c6665ace3
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: CL threaded
Comment 1 Eyal Rozenberg 2025-07-30 23:10:44 UTC
Created attachment 202086 [details]
Calc 26.2 Dark - within new chart
Comment 2 Eyal Rozenberg 2025-07-30 23:11:02 UTC
Created attachment 202087 [details]
Calc 26.2 Dark - after exiting new chart
Comment 3 Mariia Miakotkina 2025-08-25 17:13:21 UTC
Thank you for reporting the bug. I can confirm that the bug is present in

Version: 25.8.0.4 (X86_64)
Build ID: 48f00303701489684e67c38c28aff00cd5929e67
CPU threads: 12; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 4 Timur 2026-01-12 14:22:57 UTC
This was changed in 24.8 with https://gerrit.libreoffice.org/c/core/+/164142 to make chart bacground follow document background:
  commit 4edcd840aef4d1b594beecb44a0edbc0cdf5e5aa
  Author: Caolán McNamara <caolan.mcnamara@collabora.com>
  Date:   Thu Feb 29 09:39:02 2024 +0000
    set default if no ViewShell yet
Comment 5 Timur 2026-01-12 14:33:46 UTC
Note  https://gerrit.libreoffice.org/c/core/+/197108 .
Comment 6 Commit Notification 2026-01-13 14:38:26 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/aa89c0830b5cd471a4ba23aa3410b864aae21ddf

tdf#167737 chart renders text black on black in dark mode

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Timur 2026-01-14 08:50:55 UTC
Looks good to me, bibisect repo is updated.
Comment 8 Commit Notification 2026-01-14 22:36:03 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/bb7152a06685c0710759c0a5701e636b192d76a2

tdf#167737 chart renders text black on black in dark mode

It will be available in 26.2.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Commit Notification 2026-01-20 09:36:30 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/afc4cf308b02a65b3396ea2e86296272e10b3c88

tdf#167737 chart renders text black on black in dark mode

It will be available in 25.8.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.