Bug 138979 - Dark-colored style previews lack contrast when using Adwaita-dark theme
Summary: Dark-colored style previews lack contrast when using Adwaita-dark theme
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Linux-Dark-Mode
  Show dependency treegraph
Reported: 2020-12-16 19:14 UTC by Octavio Alvarez
Modified: 2022-01-02 16:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description Octavio Alvarez 2020-12-16 19:14:29 UTC
When using a dark-designed theme, styles with automatic color are properly previewed in the Styles and Formatting pane regardless of the pane dark background. However, once the text is set to a dark color manually (like 80% gray) they become invisible / unreadable on the pane.

Considering that the color combination is valid on the virtual paper on screen, and thus, usable, they should be visible too on the pane.

Same thing happens when inverting the colors: with regular Adwaita and a dark page with text set to 10% gray: the styles on the pane become almost invisible.

Steps to Reproduce:
1. Install the Adwaita-Dark theme and activate it in the system.
2. Create a new LibreOffice Writer document.
3. Open the Styles and Formatting pane. Observe that the pane has a dark background but the text is bright-colored despite being --correctly-- black in the document itself. This is because text color is set to "automatic".
4. Right click on the Default Paragraph Style and choose Modify.
5. On the Font Effects tab, set the text color to 80% gray (or something dark like that).

Actual Results:
Style previews are unreadable because of lack of contrast.

Expected Results:
Style previews should be readable just like in the page (dark text over white background).

Reproducible: Always

User Profile Reset: No

Additional Info:
Suggestion: previews for styles without a fixed background should be painted in the same background as... the current page?

- Turn "show previews" off.

Additional observations:
- When the font is set to automatic, text in the on-screen paper is painted black and text in the style previews is painted light-gray (or white?)

Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.utf8); UI: en-US
Debian package version: 1:7.0.0_rc2-1
Calc: threaded

I set the version to because is not on the list.
Comment 1 Dieter 2021-07-02 07:49:31 UTC
Octavio, unfortunately nobody could confirm this bug report for half a year. So I'd like to ask, if it is still valid. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 QA Administrators 2021-12-30 03:47:31 UTC Comment hidden (obsolete)
Comment 3 Octavio Alvarez 2022-01-02 16:43:57 UTC
Issue is still present: when the system is in dark mode, if a style has its font color set to dark gray with no background specified, the style will be unreadable on the Styles and Formatting pane because the pane will have a dark background, despite the Writer page being white.

Version: / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.2.2-0ubuntu0.21.10.1
Calc: threaded