Bug 170104 - prgsbar() status indicator unreadable white on white in DWM Dark color modes
Summary: prgsbar() status indicator unreadable white on white in DWM Dark color modes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
25.8.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Windows-Dark-Mode
  Show dependency treegraph
 
Reported: 2025-12-23 16:48 UTC by Schmidt_Sebastian
Modified: 2025-12-29 12:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of color theme settings (25.67 KB, image/png)
2025-12-25 10:00 UTC, Schmidt_Sebastian
Details
Test case for status indicator display (10.70 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-12-25 10:01 UTC, Schmidt_Sebastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Schmidt_Sebastian 2025-12-23 16:48:50 UTC
When using the status indicator bar to show some progress when running a python macro (via createStatusIndicator) the resulting status indicator is displayed as a white bar on a white background with a black border when LibreOffice is switched to dark mode which has almost no contrast. When switched to light mode the status indicator is displayed as a light green bar on grey background which has a good contrast.

Could the status indicator please be displayed in a non-white color in dark mode, so that one can see it in fact?

The status indicator is also shown when e.g. saving a file, and the effect is the same in this case, however saving a file is normally so fast that you don't realy see the color of the status indicator.
Comment 1 V Stuart Foote 2025-12-24 12:40:24 UTC
Thanks for posting an issue.

Could please post content from the Help -> About panel.

And we'll need some specific configuration details for appearance mode in Windows with a dark mode scheme:

From the Tools -> Options -> Appearance panel have you installed an Appearance theme and also checked the 'Enable application theming'?  

Or, have you left the Appearance panel in its default 'Automatic' value (so it follows color theme of the DWM)? 

Or have you set the Appearance theme value to 'Dark' while DWM remains in a Light color scheme?

Does changing any set of those (appearance theme, Automatic|Light|Dark, or DWM Light/Dark color scheme) bring to progress bar forward with a color response?

And could you post a simple test doc using a macro showing a progress bar.
Comment 2 Schmidt_Sebastian 2025-12-25 10:00:31 UTC
Created attachment 204799 [details]
Screenshot of color theme settings
Comment 3 Schmidt_Sebastian 2025-12-25 10:01:36 UTC
Created attachment 204800 [details]
Test case for status indicator display
Comment 4 Schmidt_Sebastian 2025-12-25 10:08:20 UTC
Form the about panel:

Version: 25.8.4.2 (X86_64)
Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

The settings for the appearance are set to automatic, there is no appearance theme activated (see attached screenshot).

There is some setting ("Anpassungen" -> "Skriptanzeiger") which seems to have the typical green color for the status indicator, but changing it to some other color doesn't have any effect in dark mode, so I set it back to the original value.

I played around with the settings, but I didn't manage to get any difference with respect to the color of the status indicator.

You can find a test case (Calc file with macro started by a button) as attachment.
Comment 5 V Stuart Foote 2025-12-25 12:52:28 UTC
Thanks! Having the test document with macro was very helpful.

The color controls for the progress bar get clobbered on Windows in DWM in Dark color sense. 'Automatic'or 'Dark', but fine (expected Green progress bar) with 'Light' or DWM in Light mode.

Nor does any mix of the appearance themes enabled affect the bar--if DWM is Dark color sense, no direct control of the bar style via theme and it remains washed out white on white.

Looking at the notes on prgsbar() and checking Properties -> Security panel, unlike the the "Progress bar" the "Level bar" for password protection complexity is not being affected and gets its Red, Yellow and Blue coloring style regardsless of DWM Dark mode.

Is this Win only, or are other back ends affected?

@Hossein, here's one to add to the Dark mode on Windows pile?
Comment 6 Hossein 2025-12-26 17:12:47 UTC
Seems to be Windows only.

Reproduced with:
Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 20; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Not reproducible on macOS:
Version: 26.8.3.2 (AARCH64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 10; OS: macOS 26.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Not reproducible on Linux:

$ GTK_THEME=Adwaita:dark instdir/program/soffice example.ods

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 968608eb1c65d96b54292d4926cdd0706ce594f4
CPU threads: 20; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (C.UTF-8); UI: en-US
Calc: threaded
Comment 7 Hossein 2025-12-26 20:49:27 UTC
LibreOffice on macOS, even latest LO 26.8 dev master suffers from another issue, which is a little different. It causes the progress bar not to work in debug mode.

Version: 25.8.3.2 (AARCH64) / LibreOffice Community
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 10; OS: macOS 26.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

I will file a separate issue for that.