Skip to content

[Bug]: Web blocks always expose prefers-color-scheme: dark even when macOS is Light #3318

@Blucknote

Description

@Blucknote

Current Behavior

Web blocks / embedded browser content in Wave report dark color scheme even when the operating system is set to Light mode.

On macOS with Appearance set to Light, opening a web block and running:

window.matchMedia("(prefers-color-scheme: dark)").matches

returns true

Expected Behavior

Expected Behavior

Web content should either:

  1. follow the OS color scheme by default, so on macOS Light mode:
window.matchMedia("(prefers-color-scheme: dark)").matches

should return false
or provide a separate setting to control web content color scheme, for example: "web:colorScheme": "system"

Steps To Reproduce

  1. Set macOS Appearance to Light.
  2. Open Wave Terminal.
  3. Open any web block / embedded browser content.
  4. Open DevTools or run JavaScript in the page context.
  5. Run:
window.matchMedia("(prefers-color-scheme: dark)").matches

Observe that it returns: true

Try setting the terminal theme to light: wsh setconfig 'term:theme=default-light'
Restart Wave.
Run the same JavaScript check again.
It still returns: true

Wave Version

v0.14.5

Platform

macOS

OS Version/Distribution

No response

Architecture

arm64

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions