Terminal: pick a color theme per terminal from the right-click menu
What problem are you trying to solve?
Every terminal pane uses the app theme. When I have several terminals open in a workspace, I can't give one of them different colors, so they all look the same.
Proposed solution
Add a Theme submenu to the terminal's right-click menu. It lists "App theme" plus the built-in light and dark themes and any custom themes, each with a swatch. Picking one changes only that terminal.
The choice is stored on the terminal session in the host-service, so it survives restarts and reattaching:
- a nullable
theme_idcolumn onterminal_sessions(one migration) - a
terminal.setThememutation, andthemeIdon the create and list paths - "App theme" clears the override, and the terminal follows the app theme again
I have this working on a branch and can open a PR. Before I do, I'd like to know if this approach works for you, especially the new column and mutation.
Workarounds you've tried
My first version put the picker in the terminal session dropdown, as a swatch next to each session. The right-click menu felt more natural. Outside of that, the only option is to change the app theme, which changes every terminal at once.
Source: superset-sh/superset