mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 09:42:28 +08:00
chore(settings): empty section for code notes color theme
This commit is contained in:
parent
36246104dd
commit
7475e94c53
@ -44,6 +44,7 @@ import { t } from "i18next";
|
|||||||
import LanguageOptions from "./options/i18n/language.js";
|
import LanguageOptions from "./options/i18n/language.js";
|
||||||
import type { EventData, EventNames } from "../../components/app_context.js";
|
import type { EventData, EventNames } from "../../components/app_context.js";
|
||||||
import type BasicWidget from "../basic_widget.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">
|
const TPL = /*html*/`<div class="note-detail-content-widget note-detail-printable">
|
||||||
<style>
|
<style>
|
||||||
@ -89,6 +90,7 @@ const CONTENT_WIDGETS: Record<string, (typeof NoteContextAwareWidget)[]> = {
|
|||||||
],
|
],
|
||||||
_optionsCodeNotes: [
|
_optionsCodeNotes: [
|
||||||
CodeEditorOptions,
|
CodeEditorOptions,
|
||||||
|
CodeTheme,
|
||||||
CodeMimeTypesOptions,
|
CodeMimeTypesOptions,
|
||||||
CodeAutoReadOnlySizeOptions
|
CodeAutoReadOnlySizeOptions
|
||||||
],
|
],
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user