mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
输入框, svg, 弹窗样式迁移
This commit is contained in:
@@ -58,6 +58,9 @@ export type GithubColor = {
|
||||
};
|
||||
};
|
||||
borderColor: {
|
||||
accent: {
|
||||
emphasis: string;
|
||||
};
|
||||
default: string;
|
||||
muted: string;
|
||||
translucent: string;
|
||||
@@ -100,6 +103,11 @@ export type GithubColor = {
|
||||
shadow: {
|
||||
floating: string;
|
||||
};
|
||||
overlay: {
|
||||
backdrop: {
|
||||
bgColor: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export function defineGithubTheme(githubColor: GithubColor): Theme {
|
||||
@@ -175,7 +183,7 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
|
||||
timeline: githubColor.borderColor.muted,
|
||||
input: {
|
||||
text: themeVars.color.text.self,
|
||||
background: themeVars.color.body,
|
||||
background: githubColor.bgColor.muted,
|
||||
toggleBackgound: themeVars.color.body,
|
||||
border: {
|
||||
self: themeVars.color.light.border,
|
||||
@@ -239,7 +247,7 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
|
||||
fg: githubColor.fgColor.attention,
|
||||
bg: githubColor.bgColor.attention.muted,
|
||||
},
|
||||
overlayBackdrop: themeVars.color.body,
|
||||
overlayBackdrop: githubColor.overlay.backdrop.bgColor,
|
||||
};
|
||||
|
||||
const github: Github = {
|
||||
@@ -255,6 +263,11 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
|
||||
emphasis: githubColor.bgColor.accent.emphasis,
|
||||
},
|
||||
},
|
||||
borderColor: {
|
||||
accent: {
|
||||
emphasis: githubColor.borderColor.accent.emphasis,
|
||||
},
|
||||
},
|
||||
button: {
|
||||
default: {
|
||||
bgColor: {
|
||||
|
||||
Reference in New Issue
Block a user