Skip to content

Build your personal knowledge base with Trilium Notes

chore(settings): empty section for code notes color theme

Elian Doran7475e94c53d0
diff --git a/apps/client/src/widgets/type_widgets/content_widget.ts b/apps/client/src/widgets/type_widgets/content_widget.ts
index 45af111e0f..1d2bb91b1b 100644
--- a/apps/client/src/widgets/type_widgets/content_widget.ts
+++ b/apps/client/src/widgets/type_widgets/content_widget.ts
@@ -44,6 +44,7 @@ import { t } from "i18next";
import LanguageOptions from "./options/i18n/language.js";
import type { EventData, EventNames } from "../../components/app_context.js";
import type BasicWidget from "../basic_widget.js";
+import CodeTheme from "./options/code_notes/code_theme.js";
const TPL = /*html*/`<div class="note-detail-content-widget note-detail-printable">
<style>
@@ -89,6 +90,7 @@ const CONTENT_WIDGETS: Record<string, (typeof NoteContextAwareWidget)[]> = {
],
_optionsCodeNotes: [
CodeEditorOptions,
+ CodeTheme,
CodeMimeTypesOptions,
CodeAutoReadOnlySizeOptions
],
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
new file mode 100644
index 0000000000..26c2c35fc8
--- /dev/null
+++ b/apps/client/src/widgets/type_widgets/options/code_notes/code_theme.ts
@@ -0,0 +1,15 @@
+import OptionsWidget from "../options_widget";
+
+const TPL = /*html*/`\
+<div class="options-section">
+ <h4>Color theme</h4>
+</div>
+`;
+
+export default class CodeTheme extends OptionsWidget {
+
+ doRender() {
+ this.$widget = $(TPL);
+ }
+
+}