servo/components/shared/devtools
Usman Yahaya Baba fab7bbcd38
Add SimulateColorScheme command and script thread handling (#36253)
Implements Steps 2-3 of #35867:
- Adds `SimulateColorScheme` to `DevtoolScriptControlMsg` for light/dark
mode simulation.
- Handles it in `ScriptThread` with `handle_theme_change` to toggle
themes.

Testing: This PR does not require testing because it only adds
infrastructure (command and handler) but doesn’t yet integrate with
devtools actors.
Fixes: Part of #35867 (https://github.com/servo/servo/issues/35867)

---------

Signed-off-by: Uthman Yahaya Baba <uthmanyahayababa@gmail.com>
2025-04-01 02:08:27 +00:00
..
Cargo.toml Add SimulateColorScheme command and script thread handling (#36253) 2025-04-01 02:08:27 +00:00
lib.rs Add SimulateColorScheme command and script thread handling (#36253) 2025-04-01 02:08:27 +00:00