Skip to content

Commit

Permalink
Remove color customization from integrated terminal
Browse files Browse the repository at this point in the history
Part of #6766
  • Loading branch information
Tyriar committed May 25, 2016
1 parent 4a04889 commit d3af042
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,86 +42,6 @@ configurationRegistry.registerConfiguration({
'description': nls.localize('integratedTerminal.fontFamily', "The font family used by the terminal (CSS font-family format)."),
'type': 'string',
'default': 'Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback"'
},
'integratedTerminal.ansiColors.black': {
'description': nls.localize('integratedTerminal.ansiColors.black', "Black color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#000000'
},
'integratedTerminal.ansiColors.red': {
'description': nls.localize('integratedTerminal.ansiColors.red', "Red color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#cd3131'
},
'integratedTerminal.ansiColors.green': {
'description': nls.localize('integratedTerminal.ansiColors.green', "Green color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#09885a'
},
'integratedTerminal.ansiColors.yellow': {
'description': nls.localize('integratedTerminal.ansiColors.yellow', "Yellow color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#e5e510'
},
'integratedTerminal.ansiColors.blue': {
'description': nls.localize('integratedTerminal.ansiColors.blue', "Blue color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#0451a5'
},
'integratedTerminal.ansiColors.magenta': {
'description': nls.localize('integratedTerminal.ansiColors.magenta', "Magenta color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#bc05bc'
},
'integratedTerminal.ansiColors.cyan': {
'description': nls.localize('integratedTerminal.ansiColors.cyan', "Cyan color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#0598bc'
},
'integratedTerminal.ansiColors.white': {
'description': nls.localize('integratedTerminal.ansiColors.white', "White color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#e5e5e5'
},
'integratedTerminal.ansiColors.brightBlack': {
'description': nls.localize('integratedTerminal.ansiColors.brightBlack', "Bright black color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#000000'
},
'integratedTerminal.ansiColors.brightRed': {
'description': nls.localize('integratedTerminal.ansiColors.brightRed', "Bright red color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#cd3131'
},
'integratedTerminal.ansiColors.brightGreen': {
'description': nls.localize('integratedTerminal.ansiColors.brightGreen', "Bright green color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#09885a'
},
'integratedTerminal.ansiColors.brightYellow': {
'description': nls.localize('integratedTerminal.ansiColors.brightYellow', "Bright yellow color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#e5e510'
},
'integratedTerminal.ansiColors.brightBlue': {
'description': nls.localize('integratedTerminal.ansiColors.brightBlue', "Bright blue color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#0451a5'
},
'integratedTerminal.ansiColors.brightMagenta': {
'description': nls.localize('integratedTerminal.ansiColors.brightMagenta', "Bright magenta color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#bc05bc'
},
'integratedTerminal.ansiColors.brightCyan': {
'description': nls.localize('integratedTerminal.ansiColors.brightCyan', "Bright cyan color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#0598bc'
},
'integratedTerminal.ansiColors.brightWhite': {
'description': nls.localize('integratedTerminal.ansiColors.brightWhite', "Bright white color for terminals that support ANSI escape sequences (format: #rrggbb)"),
'type': 'string',
'default': '#e5e5e5'
}
}
});
Expand Down
24 changes: 0 additions & 24 deletions src/vs/workbench/parts/terminal/electron-browser/terminalPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ export class TerminalPanel extends Panel {

let config = this.configurationService.getConfiguration<ITerminalConfiguration>();
this.terminalDomElement.style.fontFamily = config.integratedTerminal.fontFamily;
this.terminal.colors = this.getTerminalColors();
resolve(void 0);
});
}
Expand Down Expand Up @@ -168,29 +167,6 @@ export class TerminalPanel extends Panel {
return config.integratedTerminal.shell.linux;
}

private getTerminalColors(): string[] {
let config = this.configurationService.getConfiguration<ITerminalConfiguration>().integratedTerminal.ansiColors;
let colors = [
config.black,
config.red,
config.green,
config.yellow,
config.blue,
config.magenta,
config.cyan,
config.white,
config.brightBlack,
config.brightRed,
config.brightGreen,
config.brightYellow,
config.brightBlue,
config.brightMagenta,
config.brightCyan,
config.brightWhite
];
return colors;
}

public dispose(): void {
this.toDispose = lifecycle.dispose(this.toDispose);
this.terminal.destroy();
Expand Down

0 comments on commit d3af042

Please sign in to comment.