pbi_emulate_theme
Emulate the prefers-color-scheme media query in WebView to simulate light, dark, or no preference. Power BI report canvases do not restyle based on this CSS signal.
Instructions
Force the WebView media query prefers-color-scheme to light/dark/no-preference (via page.emulateMedia). Returns {emulated, scheme}. NOTE (verified 2026-07-15): the signal flips correctly (matchMedia reflects it) but Power BI Desktop reports do NOT restyle on prefers-color-scheme — report theming is driven by theme.json + app settings, not this CSS signal — so this is effectively INERT for PBI report canvases (it would matter only for a generic web app). Kept for completeness; do not expect a visual change. RESET to "no-preference" when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | Yes |