Skip to content

Commit 9d0a7c4

Browse files
authored
update panel input border logic (microsoft#165966)
fixes microsoft#165843
1 parent 83b528d commit 9d0a7c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/vs/workbench/browser/parts/panel/media/panelpart.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
.monaco-workbench .part.panel .monaco-inputbox {
50-
border-color: var(--vscode-panelInput-border) !important;
50+
border-color: var(--vscode-panelInput-border, transparent) !important;
5151
}
5252

5353
.monaco-workbench .part.basepanel > .title > .panel-switcher-container > .monaco-action-bar .action-item:focus .active-item-indicator:before {

src/vs/workbench/common/theme.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { localize } from 'vs/nls';
7-
import { registerColor, editorBackground, contrastBorder, transparent, editorWidgetBackground, textLinkForeground, lighten, darken, focusBorder, activeContrastBorder, editorWidgetForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, treeIndentGuidesStroke, errorForeground, listActiveSelectionBackground, listActiveSelectionForeground, editorForeground, toolbarHoverBackground } from 'vs/platform/theme/common/colorRegistry';
7+
import { registerColor, editorBackground, contrastBorder, transparent, editorWidgetBackground, textLinkForeground, lighten, darken, focusBorder, activeContrastBorder, editorWidgetForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, treeIndentGuidesStroke, errorForeground, listActiveSelectionBackground, listActiveSelectionForeground, editorForeground, toolbarHoverBackground, inputBorder } from 'vs/platform/theme/common/colorRegistry';
88
import { IColorTheme } from 'vs/platform/theme/common/themeService';
99
import { Color } from 'vs/base/common/color';
1010
import { ColorScheme } from 'vs/platform/theme/common/theme';
@@ -352,10 +352,10 @@ export const PANEL_ACTIVE_TITLE_BORDER = registerColor('panelTitle.activeBorder'
352352
}, localize('panelActiveTitleBorder', "Border color for the active panel title. Panels are shown below the editor area and contain views like output and integrated terminal."));
353353

354354
export const PANEL_INPUT_BORDER = registerColor('panelInput.border', {
355-
dark: null,
355+
dark: inputBorder,
356356
light: Color.fromHex('#ddd'),
357-
hcDark: null,
358-
hcLight: null
357+
hcDark: inputBorder,
358+
hcLight: inputBorder
359359
}, localize('panelInputBorder', "Input box border for inputs in the panel."));
360360

361361
export const PANEL_DRAG_AND_DROP_BORDER = registerColor('panel.dropBorder', {

0 commit comments

Comments
 (0)