Bug 153631 - Font becomes black for multiple lines in cell in dark mode
Summary: Font becomes black for multiple lines in cell in dark mode
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dark-Mode
  Show dependency treegraph
 
Reported: 2023-02-15 09:13 UTC by Jan Vlug
Modified: 2024-03-11 22:10 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example document showing the issue (12.50 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-03-28 09:57 UTC, Jan Vlug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Vlug 2023-02-15 09:13:04 UTC
When I enter text in a cell in Calc in dark mode, the text is white (font color is set to automatic).
When I enter CTRL-Enter to have a second line, the text becomes black, and is difficult to read. Note that the text only becomes black when leaving the "edit mode", I mean, when you select another cell after entering the two lines of text.
Comment 1 Xisco Faulí 2023-02-15 13:24:09 UTC Comment hidden (obsolete)
Comment 2 Jan Vlug 2023-02-15 16:44:01 UTC
Version: 7.4.5.1
Build ID: 40(Build:1)
CPU threads: 16; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-GB (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Buovjaga 2023-03-27 10:40:16 UTC
Not reproduced. Tried in operating system dark mode + Tools - Options - LibreOffice - Application colors - Color scheme: Dark.

There were numerous improvements to the dark mode for 7.5. Do you still see this in 7.5?

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a9ba09b66feec19206b0b7c6b70c6d905a6dbfe2
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 27 March 2023
Comment 4 Jan Vlug 2023-03-28 09:57:16 UTC
I tested if I could reproduce the issue in a new Calc document. There I do not see this issue.

However, it is still there in an old document. I cleaned up that document and it displays the issue. I will attach that document.

I did test with LibreOffice 7.4.6.2 on Fedora 37 (I will test with a later version once Fedora 38 is released).
Comment 5 Jan Vlug 2023-03-28 09:57:49 UTC
Created attachment 186257 [details]
Example document showing the issue
Comment 6 Buovjaga 2023-03-28 13:41:32 UTC
(In reply to Jan Vlug from comment #5)
> Created attachment 186257 [details]
> Example document showing the issue

I confirm, but no idea why. I content.xml I see

<table:table-row table:style-name="ro1">
  <table:table-cell table:style-name="ce305" office:value-type="string" calcext:value-type="string">
    <text:p>one line</text:p>
  </table:table-cell>
  <table:table-cell table:number-columns-repeated="16"/>
  <table:table-cell table:style-name="ce129"/>
  <table:table-cell table:number-columns-repeated="6"/>
  <table:table-cell table:style-name="ce79" table:number-columns-repeated="4"/>
  <table:table-cell table:style-name="Default" table:number-columns-repeated="6"/>
  <table:table-cell table:number-columns-repeated="990"/>
</table:table-row>
<table:table-row table:style-name="ro2">
  <table:table-cell table:style-name="ce305" office:value-type="string" calcext:value-type="string">
    <text:p>two</text:p>
    <text:p>lines</text:p>
  </table:table-cell>
  <table:table-cell table:style-name="ce78" table:number-columns-repeated="6"/>
  <table:table-cell table:style-name="ce102"/>
  <table:table-cell table:style-name="ce78"/>
  <table:table-cell table:style-name="ce92" table:number-columns-repeated="2"/>
  <table:table-cell table:style-name="ce78"/>
  <table:table-cell table:style-name="ce92"/>
  <table:table-cell table:style-name="ce78"/>
  <table:table-cell table:style-name="ce92"/>
  <table:table-cell table:style-name="ce78"/>
  <table:table-cell table:style-name="ce158"/>
  <table:table-cell table:style-name="ce92"/>
  <table:table-cell table:style-name="ce137" table:number-columns-repeated="7"/>
  <table:table-cell table:style-name="ce92" table:number-columns-repeated="39"/>
  <table:table-cell table:style-name="ce159" table:number-columns-repeated="960"/>
</table:table-row>

Let's set to NEW for now.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 98cf5157d69d9f1692be7f2cac958b1dfb387ca9
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 28 March 2023