mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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>
25 lines
647 B
TOML
25 lines
647 B
TOML
[package]
|
|
name = "devtools_traits"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "devtools_traits"
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
base = { workspace = true }
|
|
bitflags = { workspace = true }
|
|
http = { workspace = true }
|
|
ipc-channel = { workspace = true }
|
|
malloc_size_of = { workspace = true }
|
|
malloc_size_of_derive = { workspace = true }
|
|
net_traits = { workspace = true }
|
|
serde = { workspace = true }
|
|
servo_url = { path = "../../url" }
|
|
uuid = { workspace = true, features = ["serde"] }
|
|
embedder_traits = { workspace = true }
|