diff --git a/apps/client/src/widgets/type_widgets/options/appearance/code_block.ts b/apps/client/src/widgets/type_widgets/options/appearance/code_block.ts index 44182fdae..7d0dea381 100644 --- a/apps/client/src/widgets/type_widgets/options/appearance/code_block.ts +++ b/apps/client/src/widgets/type_widgets/options/appearance/code_block.ts @@ -55,6 +55,7 @@ const TPL = /*html*/` `; +// TODO: Deduplicate interface Theme { title: string; val: string; diff --git a/apps/client/src/widgets/type_widgets/options/code_notes/code_theme.ts b/apps/client/src/widgets/type_widgets/options/code_notes/code_theme.ts index 26c2c35fc..3dccbe664 100644 --- a/apps/client/src/widgets/type_widgets/options/code_notes/code_theme.ts +++ b/apps/client/src/widgets/type_widgets/options/code_notes/code_theme.ts @@ -1,15 +1,45 @@ +import type { OptionMap } from "@triliumnext/commons"; import OptionsWidget from "../options_widget"; +import server from "../../../../services/server"; + +// TODO: Deduplicate +interface Theme { + title: string; + val: string; +} + +type Response = Theme[]; const TPL = /*html*/`\
`; export default class CodeTheme extends OptionsWidget { + private $themeSelect!: JQuery