mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
github 主题
This commit is contained in:
@@ -4,20 +4,27 @@ const row = {
|
||||
};
|
||||
|
||||
const line = {
|
||||
/** 行号 */
|
||||
linenum: {
|
||||
bg: null,
|
||||
},
|
||||
/** 代码行 */
|
||||
row: row,
|
||||
/** 代码 */
|
||||
word: {
|
||||
bg: null,
|
||||
},
|
||||
};
|
||||
|
||||
export const diff = {
|
||||
/** 添加 */
|
||||
added: line,
|
||||
/** 移动 */
|
||||
moved: {
|
||||
row: row,
|
||||
},
|
||||
/** 删除 */
|
||||
removed: line,
|
||||
/** 对比空白部分背景色 */
|
||||
inactive: null,
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@ export const github = {
|
||||
/** 用于 color 属性的颜色 */
|
||||
fgColor: {
|
||||
/** 强调色
|
||||
* @actions 右侧日志标题颜色
|
||||
* @actions `actionViewRight` 右侧日志标题颜色
|
||||
*/
|
||||
accent: null,
|
||||
/** 默认的文本颜色
|
||||
@@ -19,7 +19,7 @@ export const github = {
|
||||
accent: {
|
||||
/** 强调色
|
||||
* @diff 折叠/展开按钮的悬停颜色
|
||||
* @actions 左侧子作业激活伪元素颜色
|
||||
* @actions `actionViewLeft` 左侧子作业激活伪元素颜色
|
||||
*/
|
||||
emphasis: null,
|
||||
},
|
||||
|
||||
@@ -4,4 +4,4 @@ export { github } from "./github";
|
||||
export { primary, secondary } from "./main";
|
||||
export { message } from "./message";
|
||||
export { named } from "./named";
|
||||
export { other } from "./other";
|
||||
export { other, otherAuto } from "./other";
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
export const other = {
|
||||
export const otherAuto= {
|
||||
/** 未知 */
|
||||
git: null,
|
||||
light: {
|
||||
/** 不知道什么用, gitea css 中没有使用这个属性的 */
|
||||
mimicEnabled: "color-light-mimic-enabled",
|
||||
},
|
||||
}
|
||||
|
||||
export const other = {
|
||||
/** 主要背景色 */
|
||||
body: null,
|
||||
/** 页面底部状态栏背景色 */
|
||||
@@ -50,8 +57,6 @@ export const other = {
|
||||
light: {
|
||||
/** 多行下交替行的强调色, 例提交历史 */
|
||||
self: null,
|
||||
/** 不知道什么用, gitea css 中没有使用这个属性的 */
|
||||
mimicEnabled: "color-light-mimic-enabled",
|
||||
/** 基础按钮/标签的边框色 */
|
||||
border: null,
|
||||
},
|
||||
|
||||
@@ -30,6 +30,7 @@ const otherVars = {
|
||||
border: {
|
||||
radius: null,
|
||||
},
|
||||
...color.otherAuto,
|
||||
};
|
||||
|
||||
export const themeVars = createGlobalThemeContract(vars, varMapper);
|
||||
|
||||
Reference in New Issue
Block a user