Compare commits

...

5 Commits

Author SHA1 Message Date
lutinglt
e2ccc8c9f7 release 2025-09-11 13:35:21 +08:00
lutinglt
7287aad198 author 2025-09-11 13:31:34 +08:00
lutinglt
b3ce1a8439 简化 release 2025-09-11 12:01:35 +08:00
lutinglt
5d96a6896d 修复display主题下差异对比展开折叠代码按钮颜色 2025-09-11 11:48:35 +08:00
lutinglt
ced954c1d0 精调 display 主题颜色 2025-09-11 11:16:06 +08:00
12 changed files with 62 additions and 31 deletions

33
.github/release.md vendored
View File

@@ -12,7 +12,7 @@ determined.
### ✨ Feature
- 支持猛男粉颜色主题
- 新增粉色颜色主题
- 修改外观设置中显示的主题名称
#### CSS 变量
@@ -22,33 +22,17 @@ determined.
### 🌈 Style
- 优化小型按钮的高度
- 一些列表栏的元素位置居中
- 优化仪表板热力图和动态样式
- 优化用户首页仪表板的样式
##### 更符合 GitHub 风格
- 同步查看代码文件内容时的样式
- 优化查看代码文件内容时的体验 (去掉了一些底部元素, 优化滚动体验)
- 略微减小导航栏创建仓库菜单按钮内的图标间隔
- 微调一些标签的字体大小
- 优化发布页面布局和下载列表样式
- 同步里程碑页面样式
- 同步顶部工单等仪表板样式
- 同步置顶 Issue 样式
- 同步订阅/关注页面样式
- 同步用户菜单样式
- 优化下拉菜单样式
- 同步差异对比页面文件名标题栏样式
- 同步查看代码文件内容时的样式 (去掉了一些底部元素, 优化滚动体验)
- 整体调整了页面元素的间隔, 样式和字体大小
- 同步顶部工单/合并请求/里程碑下的仪表板样式
- 同步里程碑/置顶 Issue 的样式
- 同步通知/订阅/关注/软件包/提示框/用户头像菜单的页面样式
- 同步分支菜单宽度
- 同步通知页面样式
- 优化仪表板的仓库组织切换按钮样式
- 同步仓库已标星的星星颜色
- 优化仪表板动态信息间隔
- 微调仓库相关界面元素间隔
- 同步软件包页面样式
- 同步提示框样式
- 同步主色调按钮和红色按钮的阴影样式
### 🐞 Fix
@@ -57,9 +41,8 @@ determined.
- 修复登录二次验证页面内容位置
- 修复后台管理的运维管理面板的样式
- 取消修改编辑器字体大小, 避免光标错位
- 修复文件预览时文件树右边框过粗
- 修复提交列表尾行圆角
- 修复 Wiki 页面和二级导航栏组织页面的团队菜单的圆角问题
- 修复 Wiki 页面和二级导航栏组织团队菜单的圆角问题
- 修复创建工单页面样式
- 修复归档仓库 Issue 时间线过长插入归档信息框
- 修复亮色主题下的 PR 合并操作评论的头像和按钮图标颜色

View File

@@ -1,3 +1,5 @@
import { saturate } from "polished";
import { scaleColorLight } from "src/functions";
import { type GithubColor } from "./github";
export type DisplayColor = {
@@ -20,6 +22,10 @@ export function display2GithubColor(
): GithubColor {
return {
...baseGithubColor,
diffBlob: {
...baseGithubColor.diffBlob,
hunkNum: { bgColor: { rest: soft ? displayColor.num2 : displayColor.num1 } },
},
fgColor: {
...baseGithubColor.fgColor,
accent: soft ? displayColor.num7 : displayColor.num6,
@@ -27,7 +33,7 @@ export function display2GithubColor(
bgColor: {
...baseGithubColor.bgColor,
accent: {
emphasis: displayColor.num5,
emphasis: soft ? saturate(-0.1, scaleColorLight(displayColor.num5, -2)) : displayColor.num5,
muted: soft ? displayColor.num1 : displayColor.num0,
},
},
@@ -43,21 +49,23 @@ export function display2GithubColor(
...baseGithubColor.button.primary,
fgColor: {
...baseGithubColor.button.primary.fgColor,
accent: soft ? displayColor.num6 : displayColor.num5,
accent: soft ? displayColor.num7 : displayColor.num6,
},
bgColor: {
...baseGithubColor.button.primary.bgColor,
rest: displayColor.num5,
hover: displayColor.num4,
rest: soft ? saturate(-0.1, scaleColorLight(displayColor.num5, -2)) : displayColor.num5,
hover: soft ? saturate(-0.1, scaleColorLight(displayColor.num5, -7)) : scaleColorLight(displayColor.num5, 5),
},
},
star: {
iconColor: soft ? displayColor.num6 : displayColor.num5,
iconColor: soft
? scaleColorLight(displayColor.num6, -2)
: saturate(0.1, scaleColorLight(displayColor.num6, -2)),
},
},
underlineNav: {
borderColor: {
active: soft ? displayColor.num6 : displayColor.num5,
active: soft ? scaleColorLight(saturate(0.1, displayColor.num6), -5) : saturate(0.2, displayColor.num6),
},
},
contribution: {

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme, themeVars, type Chroma } from "src";
import { github2ThemeColor, type GithubColor } from "src/core/github";
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme, themeVars, type Chroma } from "src";
import { github2ThemeColor, type GithubColor } from "src/core/github";
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme, themeVars } from "src";
import { github2ThemeColor, type GithubColor } from "src/core/github";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme, themeVars } from "src";
import { github2ThemeColor, type GithubColor } from "src/core/github";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme } from "src";
import { display2GithubColor, type DisplayColor } from "src/core/display";
import { github2ThemeColor } from "src/core/github";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme } from "src";
import { display2GithubColor, type DisplayColor } from "src/core/display";
import { github2ThemeColor } from "src/core/github";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme } from "src";
import { display2GithubColor } from "src/core/display";
import { github2ThemeColor } from "src/core/github";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme, themeVars, type Chroma } from "src";
import { github2ThemeColor, type GithubColor } from "src/core/github";
import { prettylights2Chroma, type prettylightsColor } from "src/core/prettylights";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme, type Chroma } from "src";
import { darkPrettylights } from "src/core/chroma";
import { github2ThemeColor, type GithubColor } from "src/core/github";

View File

@@ -1,3 +1,7 @@
/**
* @author lutinglt
*/
import { defineTheme, type Chroma } from "src";
import { lightPrettylights } from "src/core/chroma";
import { github2ThemeColor, type GithubColor } from "src/core/github";