Bug 152367 - White menu turns to black font and dark background after RDP reconnection.
Summary: White menu turns to black font and dark background after RDP reconnection.
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Windows-Dark-Mode
  Show dependency treegraph
Reported: 2022-12-04 13:19 UTC by hax
Modified: 2022-12-04 19:33 UTC (History)
3 users (show)

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

Example of the color change (18.11 KB, image/png)
2022-12-04 13:46 UTC, hax

Note You need to log in before you can comment on or make changes to this bug.
Description hax 2022-12-04 13:19:20 UTC
The menus in Calc keep turning to black font black and dark background when i reconnect over RDP. This happens at two Windows 2022 VPS with the same settings, system is set to dark mode and Calc runs in light mode. 

To get the menu font and background back to normal you have to restart Calc.

Skia is turned off and it doesnt fix it.

It was working fine for months with the versions before.

Steps to Reproduce:
1. Open Calc (Menu colors normal with black font and grey/white background)
2. Disconnect over RDP
3. Reconnect over RDP 

Actual Results:
The menu colors switch to a dark mode and have a black font on a very dark background, while the rest of Calc is in light mode. The menus are affected only.

Expected Results:
Keep the menu colors, black font on grey/white background.

Reproducible: Always

User Profile Reset: Yes

Additional Info:
Version: (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 20348; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 hax 2022-12-04 13:46:41 UTC
Created attachment 183983 [details]
Example of the color change

Left image: Fresh start
Right image: After RDP Reconnection
Comment 2 V Stuart Foote 2022-12-04 19:33:33 UTC
Believe this dark mode detection issue has already been addressed as for see also bug 151756

But could be a different Microsoft remote desktop protocol related theming issue, please check the following:

1. enable experimental features on the system(s) your RDP onto (Tools -> Options -> Advanced: 'Enable experimental features (may be unstable)' checkbox).

2. parallel install [1] a nightly of master [2] against 7.5 onto the system you remote desktop into.

If the menu colors behave during RDP session, this is a duplicate.

[1] https://wiki.documentfoundation.org/Installing_in_parallel/Windows

[2] https://dev-builds.libreoffice.org/daily/master/Win-x86_64@tb77-TDF/