同步仓库已标星的星星颜色

This commit is contained in:
lutinglt
2025-09-07 18:31:46 +08:00
parent cb49b12ff0
commit 6c0fd14119
9 changed files with 22 additions and 1 deletions

1
.github/release.md vendored
View File

@@ -27,6 +27,7 @@
- 同步分支菜单宽度 - 同步分支菜单宽度
- 同步通知页面样式 - 同步通知页面样式
- 优化仪表板的仓库组织切换按钮样式 - 优化仪表板的仓库组织切换按钮样式
- 同步仓库已标星的星星颜色
### 🐞 Fix ### 🐞 Fix

View File

@@ -60,6 +60,7 @@ export type GithubColor = {
button: { button: {
primary: { fgColor: { rest: string }; bgColor: { hover: string } }; primary: { fgColor: { rest: string }; bgColor: { hover: string } };
danger: { fgColor: { rest: string; hover: string }; bgColor: { hover: string } }; danger: { fgColor: { rest: string; hover: string }; bgColor: { hover: string } };
star: { iconColor: string };
}; };
control: { control: {
bgColor: { active: string; hover: string; rest: string }; bgColor: { active: string; hover: string; rest: string };
@@ -281,6 +282,9 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
hover: githubColor.borderColor.translucent, hover: githubColor.borderColor.translucent,
}, },
}, },
star: {
iconColor: githubColor.button.star.iconColor,
},
}, },
control: { control: {
bgColor: { bgColor: {

View File

@@ -160,6 +160,10 @@ export const github = {
hover: null, hover: null,
}, },
}, },
star: {
/** 已标星的星星颜色 */
iconColor: null,
},
}, },
control: { control: {
bgColor: { bgColor: {

View File

@@ -1,4 +1,4 @@
import { css } from "src/types/vars"; import { css, themeVars } from "src/types/vars";
// 一些列表头, 比如工单的搜索标签里程碑栏 // 一些列表头, 比如工单的搜索标签里程碑栏
export const listHeader = css` export const listHeader = css`
@@ -7,3 +7,10 @@ export const listHeader = css`
align-content: center; align-content: center;
} }
`; `;
// 已标星的图标
export const star = css`
.octicon-star-fill {
color: ${themeVars.github.button.star.iconColor} !important;
}
`;

View File

@@ -30,6 +30,7 @@ export const colorblindDarkGithubColors: GithubColor = {
button: { button: {
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#2a7aef" } }, primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#2a7aef" } },
danger: { fgColor: { rest: "#f0883e", hover: "#ffffff" }, bgColor: { hover: "#9b4215" } }, danger: { fgColor: { rest: "#f0883e", hover: "#ffffff" }, bgColor: { hover: "#9b4215" } },
star: darkGithubColors.button.star,
}, },
control: darkGithubColors.control, control: darkGithubColors.control,
shadow: darkGithubColors.shadow, shadow: darkGithubColors.shadow,

View File

@@ -30,6 +30,7 @@ export const colorblindLightGithubColors: GithubColor = {
button: { button: {
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#0864d1" } }, primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#0864d1" } },
danger: { fgColor: { rest: "#bc4c00", hover: "#ffffff" }, bgColor: { hover: "#bc4c00" } }, danger: { fgColor: { rest: "#bc4c00", hover: "#ffffff" }, bgColor: { hover: "#bc4c00" } },
star: lightGithubColors.button.star,
}, },
control: lightGithubColors.control, control: lightGithubColors.control,
shadow: lightGithubColors.shadow, shadow: lightGithubColors.shadow,

View File

@@ -56,6 +56,7 @@ export const darkGithubColors: GithubColor = {
button: { button: {
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#29903b" } }, primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#29903b" } },
danger: { fgColor: { rest: "#fa5e55", hover: "#ffffff" }, bgColor: { hover: "#b62324" } }, danger: { fgColor: { rest: "#fa5e55", hover: "#ffffff" }, bgColor: { hover: "#b62324" } },
star: { iconColor: "#e3b341" },
}, },
control: { control: {
bgColor: { active: "#2a313c", hover: "#262c36", rest: "#212830" }, bgColor: { active: "#2a313c", hover: "#262c36", rest: "#212830" },

View File

@@ -56,6 +56,7 @@ export const lightGithubColors: GithubColor = {
button: { button: {
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#1c8139" } }, primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#1c8139" } },
danger: { fgColor: { rest: "#d1242f", hover: "#ffffff" }, bgColor: { hover: "#cf222e" } }, danger: { fgColor: { rest: "#d1242f", hover: "#ffffff" }, bgColor: { hover: "#cf222e" } },
star: { iconColor: "#eac54f" },
}, },
control: { control: {
bgColor: { active: "#e6eaef", hover: "#eff2f5", rest: "#f6f8fa" }, bgColor: { active: "#e6eaef", hover: "#eff2f5", rest: "#f6f8fa" },

View File

@@ -51,6 +51,7 @@ export const softDarkGithubColors: GithubColor = {
button: { button: {
primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#3b8640" } }, primary: { fgColor: { rest: "#ffffff" }, bgColor: { hover: "#3b8640" } },
danger: { fgColor: { rest: "#ea5c53", hover: "#ffffff" }, bgColor: { hover: "#ad2e2c" } }, danger: { fgColor: { rest: "#ea5c53", hover: "#ffffff" }, bgColor: { hover: "#ad2e2c" } },
star: { iconColor: "#daaa3f" },
}, },
control: { control: {
bgColor: { active: "#3d444d", hover: "#2f3742", rest: "#2a313c" }, bgColor: { active: "#3d444d", hover: "#2f3742", rest: "#2a313c" },