mirror of
https://github.com/Tyriar/vscode-theme-generator.git
synced 2025-12-07 09:36:11 -08:00
Improve selection colors
This commit is contained in:
41
src/index.ts
41
src/index.ts
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user