import {setContentTheme} from "../ui/setContentTheme"; import {getEventName} from "../util/compatibility"; import {MenuItem} from "./MenuItem"; import {hidePanel, toggleSubMenu} from "./setToolbar"; export class ContentTheme extends MenuItem { public element: HTMLElement; constructor(vditor: IVditor, menuItem: IMenuItem) { super(vditor, menuItem); const actionBtn = this.element.children[0] as HTMLElement; const panelElement = document.createElement("div"); panelElement.className = `vditor-hint${menuItem.level === 2 ? "" : " vditor-panel--arrow"}`; let innerHTML = ""; Object.keys(vditor.options.preview.theme.list).forEach((key) => { innerHTML += ``; }); panelElement.innerHTML = `