mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 23:35:54 +01:00
Merge pull request #298688 from microsoft/mrleemurray/experienced-jade-jackal
Fix background color handling in terminal editor
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
}
|
||||
|
||||
.monaco-workbench .terminal-editor .terminal-wrapper {
|
||||
background-color: var(--vscode-terminal-background, var(--vscode-editorPane-background));
|
||||
background-color: var(--vscode-editor-background);
|
||||
}
|
||||
.monaco-workbench .terminal-editor .terminal-wrapper,
|
||||
.monaco-workbench .pane-body.integrated-terminal .terminal-wrapper {
|
||||
|
||||
@@ -2812,13 +2812,13 @@ export class TerminalInstanceColorProvider implements IXtermColorProvider {
|
||||
}
|
||||
|
||||
getBackgroundColor(theme: IColorTheme) {
|
||||
if (this._target.object === TerminalLocation.Editor) {
|
||||
return theme.getColor(editorBackground);
|
||||
}
|
||||
const terminalBackground = theme.getColor(TERMINAL_BACKGROUND_COLOR);
|
||||
if (terminalBackground) {
|
||||
return terminalBackground;
|
||||
}
|
||||
if (this._target.object === TerminalLocation.Editor) {
|
||||
return theme.getColor(editorBackground);
|
||||
}
|
||||
const location = this._viewDescriptorService.getViewLocationById(TERMINAL_VIEW_ID)!;
|
||||
if (location === ViewContainerLocation.Panel) {
|
||||
return theme.getColor(PANEL_BACKGROUND);
|
||||
|
||||
Reference in New Issue
Block a user