头像和动态样式 & Issue 样式修复

This commit is contained in:
lutinglt
2025-10-31 12:51:50 +08:00
parent 90b618688b
commit 93485dc5f7
20 changed files with 175 additions and 35 deletions

View File

@@ -7,6 +7,7 @@ import { type ThemeColor } from "./color";
export type GithubColor = {
isDarkTheme: boolean;
avatar: { bgColor: string; borderColor: string };
display: {
blue: { fgColor: string };
brown: { fgColor: string };
@@ -221,6 +222,10 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
};
const github: Github = {
avatar: {
bgColor: githubColor.avatar.bgColor,
borderColor: githubColor.avatar.borderColor,
},
fgColor: {
accent: githubColor.fgColor.accent,
success: githubColor.fgColor.success,

View File

@@ -1,4 +1,10 @@
export const github = {
avatar: {
/** 头像的背景颜色 */
bgColor: null,
/** 头像的边框颜色 */
borderColor: null,
},
/** 用于 color 属性的颜色 */
fgColor: {
/** 强调色