Bug 154321 - Dark theme switched on in Calc makes documents unreadable in Writer
Summary: Dark theme switched on in Calc makes documents unreadable in Writer
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-22 08:22 UTC by Victor
Modified: 2023-03-24 15:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2023-03-22 08:22:15 UTC
Description:
A Dark theme switched on in Calc turns background dark and fonts to white and evgerything looks fine except a few icons that become invisible. The background turns also dark in Writer (I didn't check in other Libreoffice components), but fonts don't turn to white, making documents unreadable in Writer. Either the theme in Writer should be detached from the theme settings in Calc or brought in consistency with Calc.

Steps to Reproduce:
1.In Libreoffice Calc go to Tools - Options - Libreoffice - Application colors - Color Scheme, choose Libreoffice Dark, press OK. The theme becomes dark.
2.Some icons become invisible.
3.

Actual Results:
Open any document in Libreoffice Writer: the theme is dark, the font color is black and the document is unreadable until you change the font color to white. 

Expected Results:
Font color in Writer should become white when the theme is dark.


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Comment 1 V Stuart Foote 2023-03-22 14:26:00 UTC
Color theme Dark mode handling has been reworked for 7.4 and current 7.5 release please upgrade from the EOL 7.3 release and retest. Or install current release in parallel and retest with that.
Comment 2 Victor 2023-03-22 16:57:12 UTC
I have installed LibreOffice_7.4.6.2_Linux_x86-64_deb to avoid the latest untested build. The bug is still there - in Calc everything looks good, but in Writer the background is dark and the font is dark blue. The text is unreadable. Moreover, when I open the .docx document it persistently offers to convert it into .epub (why?!) and edit it as an epub.
Comment 3 V Stuart Foote 2023-03-22 17:36:09 UTC
(In reply to Victor from comment #2)
> I have installed LibreOffice_7.4.6.2_Linux_x86-64_deb to avoid the latest
> untested build. The bug is still there - in Calc everything looks good, but
> in Writer the background is dark and the font is dark blue. The text is
> unreadable. Moreover, when I open the .docx document it persistently offers
> to convert it into .epub (why?!) and edit it as an epub.

7.4 still requires you to enable experimental features. Tools -> Options -> Advanced panel.
Comment 4 Victor 2023-03-23 15:24:31 UTC
I went to Tools -> Options -> Advanced panel -> Expert configuration -> LibreOfficeDark -> FontColor.
Its type is set to void, value is 0. I tried assigning a value to it, but that does not change the font color in Writer.
What kind of value should I assign?
Comment 5 V Stuart Foote 2023-03-23 15:44:34 UTC
Nope, all you should need to do is check the "Enable experimental features" box on the panel and restart LibreOffice.  No need to open the 'Open Expert Configuration' dialog to make changes. 

Best now to delete (or backup) your LibreOffice profile and start testing the dark color theme handling with a fresh user profile.
Comment 6 V Stuart Foote 2023-03-23 15:46:53 UTC
Also, you really should move onto the 7.5 release, rather than running with Experimental feature support at 7.4
Comment 7 V Stuart Foote 2023-03-23 16:34:44 UTC
Also, if you are using the Tools -> Options -> Application Colors  Color Scheme entry LibreOffice Dark the two values to work with are

'Document background'  (set to Dark Gray 3) and
'Font Color'  (set to Automatic)

Applying a color scheme here overrides any color passed in from os/DE theme, and the "LibreOffice Dark" is more an example theme setting some of the UI elements to other than Automatic.

If the 'Automatic' values of the default LibreOffice theme, or what is in 'LibreOffice Dark' do not work for you os/DE--you can adjust what you need there and save it to your own LibreOffice color scheme.

The handling of the Automatic values for document/UI foreground/background colors is what has been reworked for 7.4 (experimental) 7.5 and 7.6

Start in 7.4 with a profile reset, and then work in the Application Colors panel to tweak your UI (keep the Automatic defaults, but set Document background and Font color to your liking).  DO NOT USE the 'Personalization' themes for now they remain garbage.
Comment 8 Victor 2023-03-23 16:50:14 UTC
(In reply to V Stuart Foote from comment #5)
> Nope, all you should need to do is check the "Enable experimental features"
> box on the panel and restart LibreOffice.  No need to open the 'Open Expert
> Configuration' dialog to make changes. 
> 
> Best now to delete (or backup) your LibreOffice profile and start testing
> the dark color theme handling with a fresh user profile.

I did that at first - enabled the experimental features, and checked the result - the font was dark blue on the dark background.
Then I went to look for more detailed settings and found the FontColor setting.
Comment 9 Victor 2023-03-23 16:51:00 UTC
(In reply to V Stuart Foote from comment #6)
> Also, you really should move onto the 7.5 release, rather than running with
> Experimental feature support at 7.4

OK, I'll download the 7.5.1
Comment 10 Victor 2023-03-23 17:04:02 UTC
OK, I've purged 7.4.6.2 and installed 7.5.1 - nothing changed. what did I do wrong? Experimental features were still enabled. I've disabled them. How to delete my profile?
Comment 11 V Stuart Foote 2023-03-23 17:38:13 UTC
See this project Wiki

https://wiki.documentfoundation.org/UserProfile#Default_locations

The make your adjustments in Tools -> Options -> Application Colors

Stay with the 'LibreOffice'  "color scheme" and adjust only

'Document background' from Automatic to something like "Dark gray 3" from the picker and

'Font color' from Automatic to a contrasting color, something like "Lime" from the picker.

That's all that is needed.

If you select for use the "example" 'LibreOffice Dark' "color scheme" just note that rather than Automatic some of the element colors have already been assigned values.

When set Automatic you will get WYSIWYG print style black FG on white BG.
Comment 12 Victor 2023-03-24 09:08:07 UTC
I am sorry, that was my bad. I occasionally found the font color in my Writer file was set not to Automatic, but to Dark Blue. It looked almost like black and I didn't know it was not Automatic. That's why I had Dark Blue on dark background. When I changed the font color to Automatic, the font color became white on dark background. So, my LibreOffice Dark theme works fine. Let's close this bug.