Bug 160332 - black font on dark canvas when trying to use dark mode on macOS
Summary: black font on dark canvas when trying to use dark mode on macOS
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: macOS-Dark-Mode
  Show dependency treegraph
 
Reported: 2024-03-23 20:27 UTC by Jayne
Modified: 2025-02-25 16:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample of dark mode bug (85.18 KB, image/jpeg)
2024-03-23 20:29 UTC, Jayne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jayne 2024-03-23 20:27:40 UTC
Description:
I am trying to use Dark Mode in LibreOffice. I have tried both system theme (which is currently set to dark mode) and dark mode within preferences > application colours. I have also tried manually choosing white text and black background colours. In all settings, and even after resetting the settings, I am getting a black background with black text and struggle to read my text documents. Additionally, some small sections of random text are white or blue. 

Steps to Reproduce:
1.Preferences > Applications > Dark Mode > Apply
2.Preferences > Applications > System Theme > Apply
3.Preferences > Applications > Reset > Apply

Actual Results:
Document still has dark background with black text and some random sections of white text.

Expected Results:
Background should be dark gray or black with white text throughout.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 10; OS: macOS 14.4; UI render: Skia/Metal; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 1 Jayne 2024-03-23 20:29:37 UTC
Created attachment 193265 [details]
Sample of dark mode bug

This is a sample of what my text document looks like. Most text is black, some is white. All text should be white with a dark background.
Comment 2 Jayne 2024-03-25 09:48:23 UTC
I'm unable to get it back to normal with a white background and black text now. No matter what settings I choose, whether I reset the settings or not, I'm stuck with black background and black text with some white sections.
Comment 3 Haris 2024-03-29 04:33:14 UTC
Hi Jayne,

I'm using MacOS 14.1.2, and I was able to switch back from a black background to a white background. I'm also not getting the black text on a black background either, white text shows up on the black background and switches to black on a white background. 

These are the steps I used:
1. Create a new text file in Writer.
2. Go to LibreOffice->Application Colors-->Custom Colors.
3. Find "Automatic:" on the right, and select the dropdown. 
4. Select "Light" and click "OK". It should show a white background and black text.

It also seems like you're using an older stable build, here's the two builds I used:

Stable Build
Version: 24.2.1.2 (AARCH64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 10; OS: macOS 14.1.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Master/Daily Build
Version: 24.8.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: c4023d3ec604abfff38be2053e2989c7ec2ba8c1
CPU threads: 10; OS: macOS 14.1.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 steve 2025-02-25 16:11:06 UTC
Hi Jayne,

Please visit https://www.libreoffice.org/download/download-libreoffice/ download the latest stable release. Install that version and retest to see if you still encounter the issue you reported.

As for the wrong font color: when you select all text and set the font color to "Automatic" does that resolve the issue?

Setting to NEEDINFO until more detail is provided.

After providing the requested info, please reset this bug to UNCONFIRMED (should it be persisting) or WORKSFORME (should it be solved with a newer LO version).