diff options
author | Usman Yahaya Baba <91813795+UssyMan@users.noreply.github.com> | 2025-04-01 03:08:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-01 02:08:27 +0000 |
commit | fab7bbcd38bb07b9fd7c22dc805840ad942dcd9e (patch) | |
tree | 78b7634695e9859d620b40b821a13f0371b2b672 /Cargo.lock | |
parent | 8b23801a248fe75adaa6e720feadfec5300c6aac (diff) | |
download | servo-fab7bbcd38bb07b9fd7c22dc805840ad942dcd9e.tar.gz servo-fab7bbcd38bb07b9fd7c22dc805840ad942dcd9e.zip |
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>
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index 56535f82b68..0a10a8d6bac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", |