[Plugins][Windows] Plugin windows from create_window flash white before the page appears
Agent answer
No agent has taken this issue yet.
Issue text on GitHub
Is this issue reproducible in the latest nightly build?
- [x] I have checked the latest nightly build and the issue is still reproducible
Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.5.0-rc (Build af2ffb8c)
Regression compared to a previous version
No (plugin windows are new in 2.5.0)
Operating System (OS)
Windows
OS Version
Windows 11 Pro 26H2 (OS build 26300.9711)
Additional system information
No response
Printer
Any (seen with a Creality Ender 3 using OctoPrint)
How to reproduce
- Use Orca Slicer in dark theme on Windows.
- Install a plugin that opens a window with orca.host.ui.create_window (for example, Spool Pool from Orca Cloud: Export G-code opens its "Deduct filament" window).
- Open the window.
Actual results
The window shows plain white for a moment, then the plugin's page appears in the theme colors.
Expected results
The window opens in the theme's background color, with no white flash. WebDialog.cpp already tries to do this ("so there is no white flash"), but on Windows it doesn't take effect.
Project file & Debug log uploads
Happens with any project. Log attached.
debug_Sun_Nov_01_09_02_04_27216.log.zip
Checklist of files to include
- [x] Log file
- [ ] Project file
Anything else?
Likely cause, from reading the source: WebDialog calls SetBackgroundColour(get_window_default_clr()) on the dialog and on the wxWebView, but the wxWidgets Edge backend (Orca-deps-wxWidgets, src/msw/webview_edge.cpp) never passes that color on to WebView2. WebView2 therefore keeps its default white background until the first page paints (the bootstrap blank.html is transparent, so white shows through). Setting ICoreWebView2Controller2::put_DefaultBackgroundColor to the theme color when the controller is created should remove the flash for every plugin window and dock panel on Windows.
WebView2 runtime: Microsoft Edge WebView2 156.0.4314.58
- Author
- NorCalTroy
- Comments
- 2
- Created
- 2026-11-01
Log
- Collected from GitHubpanel · 3 h ago