修复红绿色盲主题的代码高亮色

This commit is contained in:
lutinglt
2025-08-15 09:15:13 +08:00
parent 9bcea89fcb
commit 8676816342
4 changed files with 4 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ export type ThemeColor = {
* github,
* })
*/
export function defineTheme(themeColor: ThemeColor, chroma: Chroma | null = null): Theme {
export function defineTheme(themeColor: ThemeColor, chroma?: Chroma): Theme {
const brightDir = themeColor.isDarkTheme ? -1 : 1;
const primary: Primary = {