Improve selection colors

This commit is contained in:
Daniel Imms
2017-01-30 11:25:06 -08:00
parent 14556a9749
commit 703d7241a0

View File

@@ -42,7 +42,7 @@ const glacierColorSet: IColorSet = {
} }
}; };
const colorset2colors = { const sapphireColors = {
red: '#DA6771', red: '#DA6771',
redLight: '#e5949b', redLight: '#e5949b',
green: '#4EB071', green: '#4EB071',
@@ -55,21 +55,21 @@ const colorset2colors = {
grey: '#4A5160' grey: '#4A5160'
} }
const colorSet2: IColorSet = { const sapphireColorSet: IColorSet = {
syntax: { syntax: {
identifier: colorset2colors.blueLight, identifier: sapphireColors.blueLight,
string: colorset2colors.red, string: sapphireColors.red,
number: colorset2colors.redLight, number: sapphireColors.redLight,
keyword: colorset2colors.blue, keyword: sapphireColors.blue,
boolean: colorset2colors.blue, boolean: sapphireColors.blue,
function: colorset2colors.teal, function: sapphireColors.teal,
functionCall: colorset2colors.yellow, functionCall: sapphireColors.yellow,
storage: colorset2colors.blue, storage: sapphireColors.blue,
comment: colorset2colors.grey, comment: sapphireColors.grey,
class: colorset2colors.teal, class: sapphireColors.teal,
classMember: colorset2colors.teal, classMember: sapphireColors.teal,
type: colorset2colors.green, type: sapphireColors.green,
this: colorset2colors.blue this: sapphireColors.blue
}, },
ui: { ui: {
background: '#151B24', background: '#151B24',
@@ -80,13 +80,14 @@ const colorSet2: IColorSet = {
findMatchHighlight: '#4e2e62', findMatchHighlight: '#4e2e62',
currentFindMatchHighlight: '#864fa9', currentFindMatchHighlight: '#864fa9',
selection: '#153958', selection: '#153958',
selectionHighlight: '#3b404c', selectionHighlight: sapphireColors.greenDim,//'#3b404c',
wordHighlight: colorset2colors.greenDim, // White with ~10% opacity
wordHighlightStrong: colorset2colors.greenDim, wordHighlight: '#ffffff18',//sapphireColors.greenDim,
activeLinkForeground: colorset2colors.blue wordHighlightStrong: '#ffffff18',//sapphireColors.greenDim,
activeLinkForeground: sapphireColors.blue
} }
}; };
const themeJson = new VscodeThemeGenerator().generateTheme('Generated theme 2', colorSet2); const themeJson = new VscodeThemeGenerator().generateTheme('Sapphire theme', sapphireColorSet);
const outputFile = path.join(__dirname, '..', 'out', 'theme.json') const outputFile = path.join(__dirname, '..', 'out', 'theme.json')
fs.writeFileSync(outputFile, themeJson); fs.writeFileSync(outputFile, themeJson);