mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-11-02 18:15:28 +00:00
头像和动态样式 & Issue 样式修复
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
export const github = {
|
||||
avatar: {
|
||||
/** 头像的背景颜色 */
|
||||
bgColor: null,
|
||||
/** 头像的边框颜色 */
|
||||
borderColor: null,
|
||||
},
|
||||
/** 用于 color 属性的颜色 */
|
||||
fgColor: {
|
||||
/** 强调色
|
||||
|
||||
Reference in New Issue
Block a user