Bug 167421 - The menus (context and pull-down) have white background when application theming is disabled
Summary: The menus (context and pull-down) have white background when application them...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UI-Theming
  Show dependency treegraph
 
Reported: 2025-07-08 11:16 UTC by anixxsus
Modified: 2025-07-09 00:10 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
The screenshot of the bug (33.97 KB, image/png)
2025-07-08 11:17 UTC, anixxsus
Details
LibreOffice 7.3 does not have this issue (37.05 KB, image/png)
2025-07-08 11:18 UTC, anixxsus
Details
Context menu on the current build is white as well (44.56 KB, image/png)
2025-07-08 13:48 UTC, anixxsus
Details
On version 7.3 the context menu is of expected color (40.78 KB, image/png)
2025-07-08 13:50 UTC, anixxsus
Details
I meant this (47.09 KB, image/png)
2025-07-08 14:23 UTC, anixxsus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anixxsus 2025-07-08 11:16:34 UTC
Description:
The context and pull-down menus in Libre Office always have white backgrounds when application theming is disabled, regardless the systemwide settings which makes LibreOffice to stand out from other applications.

This happens on the current build
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1457699096a5f6b25f7a32582e5bdec9deeb0898
CPU threads: 4; OS: Windows 11 X86_64 (build 22631); UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

On an older version 
Version: 7.3.7.2 (x64) / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 4; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

the menus use the correct colors.

Steps to Reproduce:
Open any context or pull-down menu

Actual Results:
The menu background color is white

Expected Results:
The menu background color should use ButtonFace value from the registry.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1457699096a5f6b25f7a32582e5bdec9deeb0898
CPU threads: 4; OS: Windows 11 X86_64 (build 22631); UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded
Comment 1 anixxsus 2025-07-08 11:17:22 UTC
Created attachment 201702 [details]
The screenshot of the bug
Comment 2 anixxsus 2025-07-08 11:18:56 UTC
Created attachment 201703 [details]
LibreOffice 7.3 does not have this issue
Comment 3 V Stuart Foote 2025-07-08 13:15:36 UTC
Had you applied an appearance theme and then selected back to os/DE Automatic?

While a Light/Dark appearance theme selection opposite of os/DE Dark/Light color sense has some warts when toggling from the LO Tools -> Options -> Appearance panel. May need restart, or even reset of user profile to get back to appropriate sense.

LO response using os/DE color sense (e.g. Windows DWM Settings -> Personalization -> Colors 'Choose your mode' selection of Light | Dark | Custom) seems pretty reliable.

Otherwise With non-appearance theme, only seeing an issue of "White" bg color with os/DE in a Light color sense and only on listbox drop list panel bg.  Menus and Context menu bg are not COL_WHITE "White".

Is this really an issue?

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 40df99b1111b492f81157b101e084f5c2028c8e2
CPU threads: 28; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 4 anixxsus 2025-07-08 13:45:32 UTC
No, this happens with application theming disabled, after application restart and with clean profile. There is no prevuous history of changing themes back and forth.

The context menu is similarly white unlike on LO 7.3
Comment 5 anixxsus 2025-07-08 13:48:41 UTC
Created attachment 201706 [details]
Context menu on the current build is white as well
Comment 6 anixxsus 2025-07-08 13:50:08 UTC
Created attachment 201707 [details]
On version 7.3 the context menu is of expected color
Comment 7 Sahil Gautam 2025-07-08 13:50:24 UTC
(In reply to anixxsus from comment #0)

> ... when application theming is disabled, regardless the systemwide
> settings ...

could you be more specific about what application themeing means here? you seem to be using some custom win32 mod there which might be causing this issue. libreoffice now has inbuilt application theming which might be interfering with your custom theme as it's not built to handle mods to the default theme.

could you disable in-app libreoffice theming in the registry by marking "LibreOfficeTheme" flag to 0 and then share what you got, did it fix the issue?
Comment 8 anixxsus 2025-07-08 14:23:12 UTC
Created attachment 201708 [details]
I meant this
Comment 9 anixxsus 2025-07-08 14:24:20 UTC
In-application theming is disabled, from the very beginning.
Comment 10 Sahil Gautam 2025-07-09 00:10:53 UTC
then could you please share the themeing details, how you made it look like this  and only then can i reproduce the issue and hopefully look into fixing it.