Repository navigation
feat(themes): Apariencia › Temas, sidebar and dock selectors, faithful preview - #315
Merged
Merged
Conversation
…l preview Implements the chosen artboard design/saved-themes/03-detalle-con-vista-previa: - Apariencia gets a «Temas» tab: saved themes (n/10), select to preview without activating, a large preview rendered by the real overlay, goal and chat renderers with the selected theme's own look (read-only projection), and Activar / Duplicar / Renombrar / Borrar (disabled on the active theme). «Nuevo tema» duplicates a theme or starts from «Color de cada plataforma». - The panel sidebar footer shows the active theme with a quick switcher; the dock shows it in its header and adds a «Tema» tab (narrow and wide). - Stream Deck action to activate a theme; all surfaces follow a switch live. - Presets are reduced to «Color de cada plataforma», now the look of new installs and of themes created from the default; migrated installs keep their previous default look. - Theme-owned panel writes carry the theme they were edited against: if the active theme changed meanwhile the server answers 409 and writes nothing (mixed overlay + themed writes are atomic); stale drafts stay visible, cannot be saved and can be discarded. API/MCP writes without the header keep writing the active theme. Refs #313
Dark grid stage with a dashed safe area and compact height so the goal and chat previews and the action row fit at 1440x900; each theme's dot shows its accent or the multicolour platform dot; the selected theme shows «Vista previa seleccionada». Refs #313
Each saved theme can carry an avatar (theme metadata, outside the copied look): an uploaded image cropped to a circle and/or a colour drawn as its ring; without one, the theme's dot shows inside the same ring. It is set in «Nuevo tema» and in «Editar» (formerly «Renombrar») and shown in every theme list: Apariencia (list, detail header, «Nuevo tema» origins), the sidebar switcher and the dock header and «Tema» tab. MCP renombrar_tema accepts optional color and imagen. Images must be PNG, JPG, WebP or GIF regular files in the media folder (SVG and symlinks are refused); removing an avatar or deleting a theme never deletes media. Duplicating a theme does not copy its avatar; activation keeps both themes' avatars. Refs #313
.d-btn, declared later with the same specificity, forced a column layout on the theme choices; the artboard shows avatar, name and action in one row. 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 2 of saved themes → integration branch
feat/saved-themes. Implements the chosen artboarddesign/saved-themes/03-detalle-con-vista-previa.html./api/themes/:id/preview), Activar / Duplicar / Renombrar / Borrar (disabled on the active theme with its reason), «Nuevo tema» from a theme or from «Color de cada plataforma», edit-active notice and switch feedback./sd/tema/<id>. Live sync across surfaces.X-Antena-Theme; a mismatch → 409 «El tema activo cambió mientras editabas; tus cambios no se guardaron» with nothing written (mixed custom-overlay + themed writes atomic); stale drafts stay visible, Guardar blocked, Descartar clears; global writes and API/MCP writes without the header unchanged.Verification (independent, Risk 1+3): every in-scope item met; existing v0/v1/v2 installs keep
/theme.cssand samples byte-identical; preview read-only with no leaks; fence covers themed writes only; differential vsfeat/saved-themesidentical except the preset list/defaults. New tests:saved-themes-ui,saved-themes-browser,theme-fence-preview,saved-themes-default-look(+ adjusted existing browser tests). Local: unit, browser, platform groups and typecheck green.Not in this phase:
data-temamarker + per-overlay CSS (phase 3), theme export/import (phase 4).