Skip to content

Commit ec15064

Browse files
committed
main
1 parent 26f1447 commit ec15064

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/.vitepress/config.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ const vitepressConfig = defineConfig({
1717
markdown: {
1818
lineNumbers: true,
1919
theme: {
20-
light: await themeService.getTheme('JetBrains Rider New UI theme - Light'),
20+
// light: await themeService.getTheme('Eva Light'),
2121
// dark: await themeService.getTheme('Eva Dark'),
22+
light: await themeService.getTheme('JetBrains Rider New UI theme - Light'),
2223
dark: await themeService.getTheme('JetBrains Rider New UI theme - Dark'),
2324
},
2425
codeTransformers: [transformerTwoslash()],

docs/services/ThemeService.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ThemeService implements IThemeService {
5656
async register(theme: TextmateTheme): Promise<void> {
5757
if (this.isThemeRegistered(theme.name as ThemeName)) return;
5858
if (theme.name.includes('Eva')) {
59-
const foo = theme.tokenColors.filter(x => x.scope.startsWith('comment'))[0];
59+
const foo = theme.tokenColors.filter(x => x.name.startsWith('comment'))[0];
6060
foo.settings.fontStyle = '';
6161
}
6262
await this.innerThemeService.loadTheme(theme);
@@ -86,6 +86,12 @@ class ThemeService implements IThemeService {
8686
const [themeName, info] = x;
8787
const theme = await this.fetchThemeObject(info);
8888
if (!theme.name) theme.name = themeName; // in case the theme does not have a name to indentify itself
89+
if (themeName === 'JetBrains Rider New UI theme - Dark') {
90+
theme.tokenColors.push({
91+
scope: 'keyword.operator',
92+
settings: { foreground: '#6C95EB' },
93+
});
94+
}
8995
await this.register(theme);
9096
console.log(`Textmate theme: \`${themeName}\` has loaded.`);
9197
}),

0 commit comments

Comments
 (0)