You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DH-19307: External theme support via `postMessage` apis
- Moved common MessageUtils into @deephaven/utils
- External themes can be enabled by setting `theme=[EXTERNAL_THEME_KEY]`
query string param
- ThemeBootstrap now checks if external themes are enabled. If so, the
theme is requested from the parent Window via `MSG_REQUEST_GET_THEME`
postMessage
- Current or parent Window can explicitly set external theme via
`MSG_REQUEST_SET_THEME` postMessage
### Testing
You can download this html file:
https://gist.github.com/bmingles/02451e09d218cdbe61d8c506e556562b . You
should be able to open it in browser from local filesystem, no need for
server.
1. Start DH locally in this branch (assumes port 4000)
1. Open the html file
1. Initial load should show red background color showing DH requesting
theme from the parent
1. Clicking the "Update Theme" button in bottom left should change to
random bg color. Demonstrates explicit setting of theme from parent
Window
0 commit comments