Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
theme.colors['tab.inactiveBackground'] = background4;
// tab.inactiveForeground: Inactive tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.
// tab.activeModifiedBorder: Border on top of the modified (dirty) active tabs in an active group.
theme.colors['tab.activeModifiedBorder'] = colorSet.base.color1;
// tab.inactiveModifiedBorder: Border on top of modified (dirty) inactive tabs in an active group.
theme.colors['tab.inactiveModifiedBorder'] = color1Inactive;
// tab.unfocusedActiveModifiedBorder: Border on the top of modified (dirty) active tabs in an unfocused group.
theme.colors['tab.unfocusedActiveModifiedBorder'] = color1Unfocused;
// tab.unfocusedInactiveModifiedBorder: Border on the top of modified (dirty) inactive tabs in an unfocused group.
theme.colors['tab.unfocusedInactiveModifiedBorder'] = color1Inactive;
// Editor Colors
// editor.background: Editor background color.
theme.colors['editor.background'] = background2;
// editor.foreground: Editor default foreground color.
theme.colors['editor.foreground'] = colorSet.base.foreground;
// editorLineNumber.foreground: Color of editor line numbers.
theme.colors['editorLineNumber.foreground'] = addAlpha('#FFFFFF', 0.3);
theme.colors['editorLineNumber.activeForeground'] = colorSet.base.color1;
// editorCursor.foreground: Color of the editor cursor.
if (colorSet.ui.cursor) theme.colors['editorCursor.foreground'] = colorSet.ui.cursor;
// editor.selectionBackground: Color of the editor selection.
if (colorSet.ui.selection) theme.colors['editor.selectionBackground'] = colorSet.ui.selection;
// editor.selectionHighlightBackground: Color for regions with the same content as the selection.
if (colorSet.ui.selectionHighlight) theme.colors['editor.selectionHighlightBackground'] = colorSet.ui.selectionHighlight;
// editor.inactiveSelectionBackground: Color of the selection in an inactive editor.
// editor.wordHighlightBackground: Background color of a symbol during read-access, like reading a variable.
if (colorSet.ui.wordHighlight) theme.colors['editor.wordHighlightBackground'] = colorSet.ui.wordHighlight;
// editor.wordHighlightStrongBackground: Background color of a symbol during write-access, like writing to a variable.
if (colorSet.ui.wordHighlightStrong) theme.colors['editor.wordHighlightStrongBackground'] = colorSet.ui.wordHighlightStrong;
// editor.findMatchBackground: Color of the current search match.
if (colorSet.ui.currentFindMatchHighlight) theme.colors['editor.findMatchBackground'] = colorSet.ui.currentFindMatchHighlight;
const mapStateToProps = (state: State.IState, props: ICursorProps): ICursorRendererProps => {
return {
...props,
animated: State.readConf(state.configuration, "ui.animations.enabled"),
x: state.cursorPixelX, // + state.typingPredictions.length * state.cursorPixelWidth,
y: state.cursorPixelY,
scale: state.mode === "operator" ? 0.8 : state.cursorScale,
width: state.cursorPixelWidth,
height: state.fontPixelHeight,
mode: state.mode,
color: state.colors["editor.foreground"],
textColor: state.colors["editor.background"],
character: state.cursorCharacter,
fontPixelWidth: state.fontPixelWidth,
fontFamily: State.readConf(state.configuration, "editor.fontFamily"),
fontSize: addDefaultUnitIfNeeded(State.readConf(state.configuration, "editor.fontSize")),
visible: !state.imeActive,
}
}
.snack-monaco-editor.theme-light .name-of-JsxAttribute {
color: ${lightColors.syntax.number};
}
.snack-monaco-editor.theme-light .name-of-PropertyAssignment {
color: ${lightColors.syntax.string};
}
.snack-monaco-editor.theme-light .name-of-PropertyAccessExpression {
color: ${lightColors.syntax.constant};
}
/* Dark theme overrides */
.snack-monaco-editor.theme-dark .JsxText {
color: ${dark.colors['editor.foreground']};
}
.snack-monaco-editor.theme-dark .JsxSelfClosingElement,
.snack-monaco-editor.theme-dark .JsxOpeningElement,
.snack-monaco-editor.theme-dark .JsxClosingElement,
.snack-monaco-editor.theme-dark .tagName-of-JsxOpeningElement,
.snack-monaco-editor.theme-dark .tagName-of-JsxClosingElement,
.snack-monaco-editor.theme-dark .tagName-of-JsxSelfClosingElement {
color: ${darkColors.syntax.property};
}
.snack-monaco-editor.theme-dark .name-of-JsxAttribute {
color: ${darkColors.syntax.number};
}
.snack-monaco-editor.theme-dark .name-of-PropertyAssignment {
background-color: ${props => props.theme["editor.foreground"]};
`
color: ${props =>
props.theme['editor.foreground'] || 'rgba(255, 255, 255, 0.9)'};
overflow: auto;
color: ${props => props.theme["editor.foreground"]}
}
color: ${props => props.theme['editor.foreground'] || 'white'};
cursor: pointer;
box-sizing: inherit;
border-bottom: 2px solid transparent;
z-index: 1;
${highlight
? css`
background-color: ${theme.secondary.darken(0.1)()};
color: rgba(255, 255, 255, 0.7);
border-bottom: 1px solid ${theme.secondary.darken(0.1)()};
&:hover {
background-color: ${theme.secondary.darken(0.2)()};
}
`
: css`
&:hover {
color: ${theme['editor.foreground'] ||
(theme.light ? 'black' : 'white')};
border-color: ${hideBottomHighlight
? 'transparent'
: theme.secondary()};
}
`};
`;
color: ${props => props.theme["editor.foreground"]};
position: absolute;
color: ${props => props.theme["editor.foreground"]};
display: flex;