提交 be9e8f5b 编写于 作者: M Martin Aeschlimann

[theme] find widget: use widget border instead of panel border (layer breaker)

上级 ee36947c
...@@ -29,7 +29,7 @@ import { CONTEXT_FIND_INPUT_FOCUSED } from 'vs/editor/contrib/find/common/findCo ...@@ -29,7 +29,7 @@ import { CONTEXT_FIND_INPUT_FOCUSED } from 'vs/editor/contrib/find/common/findCo
import { ITheme, registerThemingParticipant, IThemeService } from 'vs/platform/theme/common/themeService'; import { ITheme, registerThemingParticipant, IThemeService } from 'vs/platform/theme/common/themeService';
import { Color } from 'vs/base/common/color'; import { Color } from 'vs/base/common/color';
import { IConfigurationChangedEvent } from 'vs/editor/common/config/editorOptions'; import { IConfigurationChangedEvent } from 'vs/editor/common/config/editorOptions';
import { editorFindRangeHighlight, editorFindMatch, editorFindMatchHighlight, activeContrastBorder, contrastBorder, inputBackground, editorWidgetBackground, inputActiveOptionBorder, widgetShadow, inputForeground, inputBorder, inputValidationInfoBackground, inputValidationInfoBorder, inputValidationWarningBackground, inputValidationWarningBorder, inputValidationErrorBackground, inputValidationErrorBorder, errorForeground } from 'vs/platform/theme/common/colorRegistry'; import { editorFindRangeHighlight, editorFindMatch, editorFindMatchHighlight, activeContrastBorder, contrastBorder, inputBackground, editorWidgetBackground, inputActiveOptionBorder, widgetShadow, inputForeground, inputBorder, inputValidationInfoBackground, inputValidationInfoBorder, inputValidationWarningBackground, inputValidationWarningBorder, inputValidationErrorBackground, inputValidationErrorBorder, errorForeground, editorWidgetBorder } from 'vs/platform/theme/common/colorRegistry';
export interface IFindController { export interface IFindController {
...@@ -1071,7 +1071,7 @@ registerThemingParticipant((theme, collector) => { ...@@ -1071,7 +1071,7 @@ registerThemingParticipant((theme, collector) => {
collector.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${error}; }`); collector.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${error}; }`);
} }
let border = theme.getColor('panel.border'); let border = theme.getColor(editorWidgetBorder);
if (border) { if (border) {
collector.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${border}; width: 3px !important; margin-left: -4px;}`); collector.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${border}; width: 3px !important; margin-left: -4px;}`);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册