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>
This commit is contained in:
Usman Yahaya Baba 2025-04-01 03:08:27 +01:00 committed by GitHub
parent 8b23801a24
commit fab7bbcd38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 0 deletions

1
Cargo.lock generated
View file

@ -1618,6 +1618,7 @@ version = "0.0.1"
dependencies = [
"base",
"bitflags 2.9.0",
"embedder_traits",
"http 1.3.1",
"ipc-channel",
"malloc_size_of_derive",