message: Add support for theme syncing with app content editor
diff: @@ -170,6 +170,7 @@ export class ContentEditorAppAdapterMessage {
  | 'window'
  | 'scope'
  | 'content'
  + | 'theme'
  | 'bold'
  | 'italic'
  | 'strikethrough'
  @@ -290,6 +291,12 @@ export class ContentEditorAppAdapterMessage {
  editorGetAppAdapter().initialContent = this.data.content;
  return;
  + case 'theme': {
  + const isDark = !(this.data.lightMode ?? false);
  + editorGetAppAdapter()._getThemeStore().setDark(isDark);
  + return;
  + }
  +
  case 'bold':
  return editorToggleMark(controller, marks.strong);
  