Skip to content

feat(web): add appearance contrast control - #7906

Merged
maria-rcks merged 9 commits into
mainfrom
feat/appearance-contrast
Aug 22, 2026
Merged

maria-rcks merged 9 commits into
mainfrom
feat/appearance-contrast

fix(web): sync annotation chrome contrast

7bb0d15
Select commit
Loading
Failed to load commit list.
MacroscopeApp / Macroscope - Correctness Check succeeded Aug 22, 2026 in 54s

No issues identified (2 code objects reviewed).

• Merge Base: 2c4158f
• Head: 7bb0d15

Details

✅ File Path Comments Posted Reason
✅ .macroscope/check-run-agents/ui-consistency.md 0
✅ apps/web/src/browser/annotationTheme.ts 0

Filtered Issues Details

apps/web/src/browser/annotationTheme.ts
  • line 13: readPreviewAnnotationTheme now reads the --contrast-* custom properties verbatim. Those properties are defined as color-mix(...) expressions containing references such as var(--foreground) and var(--appearance-contrast-base), and getComputedStyle(...).getPropertyValue() does not resolve the contents of a custom property to a final color. PickPreload later installs this string as --t3-foreground inside the unrelated preview page, where the referenced app theme variables are absent (or may have unrelated values), making the annotation overlay colors invalid or incorrect. This affects all six changed reads; they must be resolved to concrete colors before crossing into the preview document. [ Already posted ]