opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: toggle transparent background

Open JosXa opened this issue 3 weeks ago • 2 comments

Summary

  • Added transparent state to Theme context and resolveTheme function to support transparent background.
  • Added "Toggle transparency" command to the command palette.
  • Updated useTheme to expose transparent and setTransparent.

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.

JosXa avatar Dec 17 '25 00:12 JosXa

https://github.com/user-attachments/assets/475d5804-59d0-4b1b-9d42-8e96ccb4a2ad

JosXa avatar Dec 17 '25 01:12 JosXa

Dynamically switching the text for this menu item from "Enable transparency" to "Disable transparency" to indicate its current state would be a nice touch.

ariane-emory avatar Dec 17 '25 02:12 ariane-emory