feat(quantum): Q8 circuit SVG themes and view plot chrome

Fix label/wire overlap with gutter + chip labels; default dark tech palette
with light/bw themes; restyle probs/bloch and darken view plot frames.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-28 15:46:02 +08:00
1 parent cf4dbdeade
commit dfb27d41dc
11 files changed
+592 -155

No files matched your search

+11 -3
View File
@@ -2430,8 +2430,13 @@ fn ext_quantum_steps_smoke() {
let svg_path = "tests/ext/quantum-steps-draw.svg";
let svg = std::fs::read_to_string(svg_path).unwrap_or_default();
assert!(
svg.contains("<svg") && svg.contains("q0"),
"{path} bad svg at {svg_path}: {svg}"
svg.contains("<svg")
&& svg.contains("q0")
&& svg.contains(r#"data-theme="dark""#)
&& svg.contains("#0a0e14")
&& svg.contains("data-gate-family")
&& svg.contains("url(#mq-bg)"),
"{path} bad themed svg at {svg_path}: {svg}"
);
let _ = std::fs::remove_file(svg_path);
}
@@ -2450,7 +2455,10 @@ fn ext_quantum_draw_smoke() {
"tests/ext/quantum-draw-bloch.svg",
] {
let svg = std::fs::read_to_string(p).unwrap_or_default();
assert!(svg.contains("<svg"), "expected svg at {p}");
assert!(
svg.contains("<svg") && svg.contains(r#"data-theme="dark""#),
"expected themed svg at {p}"
);
let _ = std::fs::remove_file(p);
}
}