added selection color customization (fixes #2249)

This commit is contained in:
Eugene Pankov 2020-03-25 22:05:25 +01:00
parent 140f7c51f4
commit d38af18582
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ export class TerminalConfigProvider extends ConfigProvider {
name: 'Material',
foreground: '#eceff1',
background: 'rgba(38, 50, 56, 1)',
selection: null,
cursor: '#FFCC00',
colors: [
'#000000',

View File

@ -224,6 +224,7 @@ export class XTermFrontend extends Frontend {
const theme: ITheme = {
foreground: config.terminal.colorScheme.foreground,
selection: config.terminal.colorScheme.selection || '#88888888',
background: config.terminal.background === 'colorScheme' ? config.terminal.colorScheme.background : '#00000000',
cursor: config.terminal.colorScheme.cursor,
}