Bug 157365 - Options > LibreOffice Writer changes page color scheme from Dark to Light
Summary: Options > LibreOffice Writer changes page color scheme from Dark to Light
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Options-Dialog-Colours
  Show dependency treegraph
 
Reported: 2023-09-21 13:58 UTC by Dynamo
Modified: 2023-12-01 22:31 UTC (History)
4 users (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 Dynamo 2023-09-21 13:58:42 UTC
Description:
Changing default fonts under Options/LibreOffice Writer/Basic Fonts (Western) to Calibri from 'Liberation Sans' for all options forces document background to display as white.

If I go to Options/LibreOffice/Application Colours and set it back to Dark, or change individual settings like Document background to Black, clicking apply or okay causes it to reset back to white and ignore my settings.

To fix the issue, I selected 

Steps to Reproduce:
1.go to Options/LibreOffice/Application Colours and set it to Automatic:Dark. page colour is now dark.
2.go to Options/LibreOffice Writer/Basic Fonts (Western) and change all fonts to Calibri from 'Liberation Sans' for all options. click apply or ok.
3.voila, hideous glaring white document colour!
4. go back to  Options/LibreOffice/Application Colours and set it to Automatic:Light. page colour is now dark again like its meant to be.

Actual Results:
the document colour changes to white, when its set to display as dark grey/black using the Automatic: dark option

Expected Results:
The font should have changed to Calibri, and the document colour should still be whatever i set it to (black). changing default fonts should not affect document colour


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 1 Kira Tubo 2023-10-05 04:16:44 UTC
Reproduced as described except for step 4. Switching Automatic from Dark to Light keeps the page color as light, as expected. 

For me, I didn't even need to change the default font. I just needed to be within any of the pages of LibreOffice Writer, click OK, and the page color would change. It would be good if others would confirm the steps below:  

1. Go to Tools > Options > LibreOffice > Application Colors
2. Change Automatic to "Dark"
3. Click OK
4.  Go to Tools > Options and expand LibreOffice Writer
5. Click on any page within LibreOffice Writer (e.g. General, View, Formatting Aids, etc.)
6. Click OK

-------------------

Reproduced in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: dd7fc07f83416a3d8a444947b7d28f7347520d6a
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Not reproduced in:

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 Stéphane Guillou (stragu) 2023-10-05 15:50:55 UTC
For me, on Linux, even simpler steps:

1. Go to Tools > Options > LibreOffice > Application Colours
2. Change scheme to "Dark" (document background automatically goes dark even without pressing "Apply")
3. Open any page within LibreOffice Writer (e.g. General, View, Formatting Aids, etc.)
4. Click OK

Result: document background back to white.

Agree with Kira that it started in 7.6.

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Not reproduced in:

Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 3 Kira Tubo 2023-10-05 21:12:03 UTC
Bibisected win64-7.6. Looks like the issue started at this commit: https://git.libreoffice.org/core/+/1916d161902bdd52b8cfa5b29153c8f8c39fce52

Adding Paris Oplopoios to cc. @Paris, here are simplified steps from Comment 2: 

>1. Go to Tools > Options > LibreOffice > Application Colours
>2. Change scheme to "Dark" (document background automatically goes dark even without pressing "Apply")
>3. Open any page within LibreOffice Writer (e.g. General, View, Formatting Aids, etc.)
>4. Click OK

-----------------

commit 1916d161902bdd52b8cfa5b29153c8f8c39fce52	[log]
author	Paris Oplopoios <paris.oplopoios@collabora.com>	Wed Mar 08 17:34:02 2023 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	Thu Mar 16 08:41:38 2023 +0000
tree fdb789357ef4e58e3f26066235b5928efcf63437
parent ee8e9b993595e728f827a5fe6ab1ae5fb1f6aaae [diff]

------------------

commit fe420d4fcd358840a2e45b4985a69f92794b9b55
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Thu Mar 16 03:26:24 2023 -0700

    source 1916d161902bdd52b8cfa5b29153c8f8c39fce52