Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Feb 16, 2025
1 parent 26f1447 commit 23c5935
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const vitepressConfig = defineConfig({
markdown: {
lineNumbers: true,
theme: {
light: await themeService.getTheme('JetBrains Rider New UI theme - Light'),
light: await themeService.getTheme('Eva Light'),
// dark: await themeService.getTheme('Eva Dark'),
dark: await themeService.getTheme('JetBrains Rider New UI theme - Dark'),
},
Expand Down
6 changes: 6 additions & 0 deletions docs/services/ThemeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ class ThemeService implements IThemeService {
const [themeName, info] = x;
const theme = await this.fetchThemeObject(info);
if (!theme.name) theme.name = themeName; // in case the theme does not have a name to indentify itself
if (themeName === 'JetBrains Rider New UI theme - Dark') {
theme.tokenColors.push({
scope: 'keyword.operator',
settings: { foreground: '#6C95EB' },
});
}
await this.register(theme);
console.log(`Textmate theme: \`${themeName}\` has loaded.`);
}),
Expand Down

0 comments on commit 23c5935

Please sign in to comment.