{"version":"2.1.319","anchor":"voice-call-and-themesetthemeclear-additions","canonical_anchor":"plugin-function-hooks-theme-api-replaces-backdrop-clear","heading":"Plugin theme API: theme.set and theme.clear replace ui.backdrop","tier":"use","area":"Voice","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/voice-call-and-themesetthemeclear-additions","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Plugin theme API: theme.set and theme.clear replace ui.backdrop\n\nPlugins now set and clear a backdrop through theme.set and theme.clear, and the old ui.backdrop method is removed\n\n**Unclear.** What the voice-call source does and whether either feature is available to users is not stated.\n\n**What**\n\nPlugins, add-ons that extend Claude Code, can set a backdrop behind what Claude Code draws.\n\n- `ui.backdrop`, which took `id`, `glass` and `colorScheme`, is removed. Plugins that call it no longer have that method.\n\n- The new `theme.set` takes only `{ backdrop: { id, glass?, colorScheme? } }`. Anything else in the backdrop is filtered out before it is sent.\n\n- The new `theme.clear` clears the theme.\n\n- The draw function no longer clears the backdrop when passed undefined.\n\n- Separately, a new `voice-call` origin case appears next to `slack-ping`.\n\n**Why**\n\nPlugins that call `ui.backdrop`, or clear the backdrop by passing undefined, stop working that way. They need to move to `theme.set` and `theme.clear`.\n\n- Area: Voice\n- Names: `theme.set`, `theme.clear`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: yes"}