Repository navigation
feat(themes): theme marker, per-overlay theme CSS and SDK theme identity - #316
Merged
Merged
Conversation
- Overlay, widgets, interview, teleprompter and custom overlay frames carry
data-tema="<theme id>" on <html>, updated live. The alert overlay switches
its marker together with the deferred look when the visible alert exits;
an idle overlay and the other pages switch immediately.
- Each custom overlay gets a theme-owned «CSS de este tema» (stored in the
theme look, copied on duplicate, swapped on activate). It is injected live
into the sandboxed frame through the trusted shell without reloading it;
the overlay's own code and approval never change. The editor honours the
theme fence.
- The custom overlay SDK exposes the theme { id, name } and receives
identity, look and theme CSS as one atomic snapshot.
- Still previews of every alert type use the previewed theme read-only.
- Stream contract unchanged: existing events and initial frames are
byte-identical; activeTheme (themeInfo=1) and customOverlayTheme
(customTheme=1) are opt-in events sent after them. /api/state shape is
unchanged.
Refs #313
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #313 · Phase 3 of saved themes → integration branch
feat/saved-themes.data-tema="<id>"on overlay, widgets, interview, teleprompter and custom overlay frames, live. The alert overlay switches it with the deferred look when the visible alert exits; idle overlay and other pages switch immediately.textContent, own frame only), no frame reload, overlay code/approval untouched. Editor honours theX-Antena-Themefence. Size caps per entry and for the whole map.{ id, name }; identity + look + theme CSS arrive as one atomic snapshot.activeTheme(themeInfo=1) andcustomOverlayTheme(customTheme=1) are opt-in, sent after them./api/stateshape unchanged.Verification (independent, Risk 2+3): S4 met; deferral met; stream differential vs
feat/saved-themesidentical without opt-in params; CSS cannot escape the sandbox, limits hold with nothing written on rejection; v3 configs load byte-identical, export/import round-trip identical. New tests:overlay-theme-deferral,custom-overlays-sdk,saved-themes-marker-contract+ browser coverage. Local: unit, browser, platform and typecheck green.Known follow-up (advisory): every custom shell receives the whole theme-CSS map on theme/CSS changes; fine for typical sizes, could be narrowed per overlay later.
Not in this phase: theme export/import with media (phase 4).