mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
同步提示框样式
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -114,7 +114,7 @@ export const other = {
|
||||
/** 点击后颜色 */
|
||||
activeBg: "color-reaction-active-bg",
|
||||
},
|
||||
/** 不知道是干啥的 */
|
||||
/** 鼠标悬浮时的提示文本, 比如提交的具体时间, 任务状态等 */
|
||||
tooltip: {
|
||||
text: null,
|
||||
bg: null,
|
||||
|
||||
Reference in New Issue
Block a user