同步提示框样式

This commit is contained in:
lutinglt
2025-09-09 10:41:23 +08:00
parent 46c2d46482
commit 1a702c9526
8 changed files with 23 additions and 4 deletions

View File

@@ -36,10 +36,12 @@ export type GithubColor = {
black: string;
white: string;
muted: string;
onEmphasis: string;
};
bgColor: {
accent: { emphasis: string; muted: string };
attention: { muted: string };
emphasis: string;
success: { emphasis: string; muted: string };
danger: { muted: string };
done: { emphasis: string };
@@ -193,8 +195,8 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
activeBg: githubColor.bgColor.accent.muted,
},
tooltip: {
text: githubColor.fgColor.default,
bg: githubColor.bgColor.default,
text: githubColor.fgColor.onEmphasis,
bg: githubColor.bgColor.emphasis,
},
nav: {
bg: githubColor.bgColor.inset,

View File

@@ -114,7 +114,7 @@ export const other = {
/** 点击后颜色 */
activeBg: "color-reaction-active-bg",
},
/** 不知道是干啥的 */
/** 鼠标悬浮时的提示文本, 比如提交的具体时间, 任务状态等 */
tooltip: {
text: null,
bg: null,