Bug 166060 - Text is black on black background in dark mode when commands are unavailable
Summary: Text is black on black background in dark mode when commands are unavailable
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
: 166169 (view as bug list)
Depends on:
Blocks: Linux-Dark-Mode
  Show dependency treegraph
 
Reported: 2025-04-07 09:05 UTC by enriquermcd
Modified: 2025-07-27 15:17 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Libreoffice writer (93.56 KB, image/png)
2025-04-07 09:06 UTC, enriquermcd
Details
Libreoffice calc (109.46 KB, image/png)
2025-04-07 09:06 UTC, enriquermcd
Details
Libreoffice calc when connecting cells available (111.77 KB, image/png)
2025-04-07 09:07 UTC, enriquermcd
Details
Settings (164.17 KB, image/png)
2025-04-07 10:30 UTC, enriquermcd
Details
Appearence after new settings (84.00 KB, image/png)
2025-04-07 10:31 UTC, enriquermcd
Details
More "hidden" settings (82.16 KB, image/png)
2025-04-07 11:08 UTC, enriquermcd
Details
Black text on black background (93.42 KB, image/png)
2025-07-10 09:49 UTC, enriquermcd
Details
Black text on black background (safe mode) (102.03 KB, image/png)
2025-07-10 09:50 UTC, enriquermcd
Details
White text on black background (safe mode) (101.09 KB, image/png)
2025-07-10 09:50 UTC, enriquermcd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description enriquermcd 2025-04-07 09:05:42 UTC
Description:
When using LibreOffice in dark mode, some text in the settings interface is rendered in black, making it invisible against the black background. This issue only occurs when certain settings are unavailable and cannot be clicked or interacted with. The text appears as if it is present but is difficult to read or entirely invisible due to the black-on-black color scheme.

Steps to Reproduce:
1. Set LibreOffice to dark mode (through the Tools → Options → Application Colors).

2. Navigate to the settings where certain options are unavailable (e.g.,paste when nothing on the clipboard or connect cells on calc).

3. Observe that the text for those unavailable settings appears in black, making it unreadable on the dark background.

Actual Results:
The text for unavailable settings appears in black on a black background, making it effectively invisible or very hard to read.

Expected Results:
The text for unavailable settings should be visible with a white color to ensure readability in dark mode.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 12; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
25.2.2-1
Calc: threaded
Comment 1 enriquermcd 2025-04-07 09:06:20 UTC
Created attachment 200191 [details]
Libreoffice writer
Comment 2 enriquermcd 2025-04-07 09:06:38 UTC
Created attachment 200192 [details]
Libreoffice calc
Comment 3 enriquermcd 2025-04-07 09:07:02 UTC
Created attachment 200193 [details]
Libreoffice calc when connecting cells available
Comment 4 m_a_riosv 2025-04-07 09:49:13 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 5 enriquermcd 2025-04-07 10:30:45 UTC
When testing in safe mode with following settings (see new attachment), it works. 

Then I used the same settings, saved them and it seemed to work. But actually, after restarting the program the bug appears again.
Comment 6 enriquermcd 2025-04-07 10:30:59 UTC
Created attachment 200195 [details]
Settings
Comment 7 enriquermcd 2025-04-07 10:31:49 UTC
Created attachment 200196 [details]
Appearence after new settings
Comment 8 enriquermcd 2025-04-07 11:08:11 UTC
Created attachment 200198 [details]
More "hidden" settings
Comment 9 Buovjaga 2025-06-30 07:55:30 UTC
I changed the summary: settings -> commands as that is what I understand is really the point here.

(In reply to enriquermcd from comment #8)
> Created attachment 200198 [details]
> More "hidden" settings

I don't see the text as black in my UI, but maybe there were fixes after 25.2.2, can you check?

Arch Linux 64-bit
Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 520(Build:3)
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
25.2.4-1
Calc: threaded
Comment 10 enriquermcd 2025-07-10 09:48:55 UTC
I just freshly reinstalled my Linux System and the black text is still showing up for the cut and paste button on the tab bar, when not available (see image).

The only settings that I changed are:
- Icons to Breeze dark
- Write default document color to white
- User interface to tabbed

In safe mode tho, the text looks white. But after using CTRL+V to paste something and then removing it, the text appears black again. So I don't think it has to do with any of my settings.

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 520(Build:3)
CPU threads: 12; OS: Linux 6.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
25.2.4-2
Calc: threaded
Comment 11 enriquermcd 2025-07-10 09:49:50 UTC
Created attachment 201729 [details]
Black text on black background
Comment 12 enriquermcd 2025-07-10 09:50:09 UTC
Created attachment 201730 [details]
Black text on black background (safe mode)
Comment 13 enriquermcd 2025-07-10 09:50:23 UTC
Created attachment 201731 [details]
White text on black background (safe mode)
Comment 14 Buovjaga 2025-07-10 10:04:35 UTC
(In reply to enriquermcd from comment #10)
> In safe mode tho, the text looks white. But after using CTRL+V to paste
> something and then removing it, the text appears black again. So I don't
> think it has to do with any of my settings.

Now I do see it - it might take some time or an action to see it indeed. Sometimes even in Safe Mode it switches to black almost instantly.
Comment 15 Buovjaga 2025-07-10 10:38:30 UTC
The colour for disabled items is lighter before commit d2bf91d9594e38552e030b66dfb71084d0fb2664
Set StyleSettings::DisableColor value in GTK
Comment 16 michael.maurer 2025-07-27 15:07:42 UTC
The root cause may be the same as for #166169.
Comment 17 Buovjaga 2025-07-27 15:17:30 UTC
*** Bug 166169 has been marked as a duplicate of this bug. ***