mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
parent
d715867b09
commit
845411b48c
@ -126,6 +126,7 @@ export class HaCodeEditor extends UpdatingElement {
|
|||||||
this._loadedCodeMirror.history(),
|
this._loadedCodeMirror.history(),
|
||||||
this._loadedCodeMirror.highlightSelectionMatches(),
|
this._loadedCodeMirror.highlightSelectionMatches(),
|
||||||
this._loadedCodeMirror.highlightActiveLine(),
|
this._loadedCodeMirror.highlightActiveLine(),
|
||||||
|
this._loadedCodeMirror.drawSelection(),
|
||||||
this._loadedCodeMirror.rectangularSelection(),
|
this._loadedCodeMirror.rectangularSelection(),
|
||||||
this._loadedCodeMirror.keymap.of([
|
this._loadedCodeMirror.keymap.of([
|
||||||
...this._loadedCodeMirror.defaultKeymap,
|
...this._loadedCodeMirror.defaultKeymap,
|
||||||
|
@ -6,7 +6,7 @@ import { yaml } from "@codemirror/legacy-modes/mode/yaml";
|
|||||||
import { indentLess, indentMore } from "@codemirror/commands";
|
import { indentLess, indentMore } from "@codemirror/commands";
|
||||||
import { Compartment } from "@codemirror/state";
|
import { Compartment } from "@codemirror/state";
|
||||||
|
|
||||||
export { keymap, highlightActiveLine } from "@codemirror/view";
|
export { keymap, highlightActiveLine, drawSelection } from "@codemirror/view";
|
||||||
export { CMEditorView as EditorView };
|
export { CMEditorView as EditorView };
|
||||||
export { EditorState, Prec } from "@codemirror/state";
|
export { EditorState, Prec } from "@codemirror/state";
|
||||||
export { defaultKeymap } from "@codemirror/commands";
|
export { defaultKeymap } from "@codemirror/commands";
|
||||||
@ -49,6 +49,10 @@ export const theme = CMEditorView.theme({
|
|||||||
backgroundColor: "rgba(var(--rgb-primary-color), 0.3)",
|
backgroundColor: "rgba(var(--rgb-primary-color), 0.3)",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
".cm-activeLine": {
|
||||||
|
backgroundColor: "rgba(var(--rgb-secondary-text-color), 0.1)",
|
||||||
|
},
|
||||||
|
|
||||||
".cm-scroller": { outline: "none" },
|
".cm-scroller": { outline: "none" },
|
||||||
|
|
||||||
".cm-content": { caretColor: "var(--secondary-text-color)" },
|
".cm-content": { caretColor: "var(--secondary-text-color)" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user