@uiw/codemirror-themes
Advanced tools
Comparing version 4.13.2 to 4.14.0
@@ -33,2 +33,4 @@ import { Extension } from '@codemirror/state'; | ||
gutterForeground?: string; | ||
/** Text active color inside gutter. */ | ||
gutterActiveForeground?: string; | ||
/** Gutter right border color. */ | ||
@@ -35,0 +37,0 @@ gutterBorder?: string; |
@@ -37,2 +37,6 @@ "use strict"; | ||
} | ||
var activeLineGutterStyle = {}; | ||
if (settings.gutterActiveForeground) { | ||
activeLineGutterStyle.color = settings.gutterActiveForeground; | ||
} | ||
if (settings.lineHighlight) { | ||
@@ -42,6 +46,5 @@ themeOptions['.cm-activeLine'] = { | ||
}; | ||
themeOptions['.cm-activeLineGutter'] = { | ||
backgroundColor: settings.lineHighlight | ||
}; | ||
activeLineGutterStyle.backgroundColor = settings.lineHighlight; | ||
} | ||
themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle; | ||
if (settings.selection) { | ||
@@ -48,0 +51,0 @@ themeOptions['&.cm-focused .cm-selectionBackground .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, ::selection'] = { |
@@ -33,2 +33,4 @@ import { Extension } from '@codemirror/state'; | ||
gutterForeground?: string; | ||
/** Text active color inside gutter. */ | ||
gutterActiveForeground?: string; | ||
/** Gutter right border color. */ | ||
@@ -35,0 +37,0 @@ gutterBorder?: string; |
@@ -33,2 +33,6 @@ import { EditorView } from '@codemirror/view'; | ||
} | ||
var activeLineGutterStyle = {}; | ||
if (settings.gutterActiveForeground) { | ||
activeLineGutterStyle.color = settings.gutterActiveForeground; | ||
} | ||
if (settings.lineHighlight) { | ||
@@ -38,6 +42,5 @@ themeOptions['.cm-activeLine'] = { | ||
}; | ||
themeOptions['.cm-activeLineGutter'] = { | ||
backgroundColor: settings.lineHighlight | ||
}; | ||
activeLineGutterStyle.backgroundColor = settings.lineHighlight; | ||
} | ||
themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle; | ||
if (settings.selection) { | ||
@@ -44,0 +47,0 @@ themeOptions['&.cm-focused .cm-selectionBackground .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, ::selection'] = { |
{ | ||
"name": "@uiw/codemirror-themes", | ||
"version": "4.13.2", | ||
"version": "4.14.0", | ||
"description": "Themes for CodeMirror.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/doc", |
@@ -197,2 +197,8 @@ # Custom Codemirror Themes | ||
**vscode** | ||
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/vscode/dark"> | ||
<img width="436" alt="codemirror-theme-vscode dark" src="https://user-images.githubusercontent.com/1680273/202343079-7eca1c90-da69-4ef2-a18c-4c9f5ea4e396.png"> | ||
</a> | ||
**xcode** | ||
@@ -199,0 +205,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31633
300
279