fix(desktop): add color fallbacks for legacy webviews
This commit is contained in:
1 parent
8942356eed
commit
ee94157055
7 files changed
+352
-123
No files matched your search
@@ -16,6 +16,7 @@ import { bracketMatching } from "@codemirror/language";
|
||||
import {
|
||||
EDITOR_FONT_FAMILY_CSS_VAR,
|
||||
EDITOR_FONT_SIZE_CSS_VAR,
|
||||
cellDetailActiveLineColor,
|
||||
loadEditorTheme,
|
||||
editorFontTheme,
|
||||
} from "@/lib/editorThemes";
|
||||
@@ -196,7 +197,7 @@ export function useCellDetailEditor(options: UseCellDetailEditorOptions): UseCel
|
||||
highlightActiveLine(),
|
||||
EditorView.theme({
|
||||
".cm-activeLine": {
|
||||
backgroundColor: "color-mix(in oklch, var(--foreground) 4%, transparent)",
|
||||
backgroundColor: cellDetailActiveLineColor(),
|
||||
},
|
||||
}),
|
||||
EditorState.allowMultipleSelections.of(true),
|
||||
|
||||
Reference in new issue
Block a user