[PR #5657] feat: toggle transparent background #11520

Open
opened 2026-02-16 18:16:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5657

State: open
Merged: No


Summary

  • Added transparent state to Theme context and resolveTheme function to support transparent background.
  • Added "Toggle transparency" command to the command palette (dynamically shows "Enable/Disable transparency" based on current state).
  • Updated useTheme to expose transparent and setTransparent.

Closes #11866

Why

This change allows users to toggle the background transparency of the TUI, which is useful for integrating the TUI with other tools or for aesthetic preference, as requested by the user. Instead of creating separate transparent themes, this allows any theme to be transparent.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5657 **State:** open **Merged:** No --- ## Summary - Added `transparent` state to `Theme` context and `resolveTheme` function to support transparent background. - Added "Toggle transparency" command to the command palette (dynamically shows "Enable/Disable transparency" based on current state). - Updated `useTheme` to expose `transparent` and `setTransparent`. Closes #11866 ## Why This change allows users to toggle the background transparency of the TUI, which is useful for integrating the TUI with other tools or for aesthetic preference, as requested by the user. Instead of creating separate transparent themes, this allows any theme to be transparent.
yindo added the pull-request label 2026-02-16 18:16:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11520