This commit is contained in:
lutinglt
2025-09-11 14:36:26 +08:00
parent e2ccc8c9f7
commit 2caf68e290
12 changed files with 77 additions and 5 deletions

28
.github/release.md vendored
View File

@@ -49,13 +49,39 @@ determined.
## 📃 English (From AI)
### ✨ Feature
- Added pink color theme
- Modified theme names displayed in appearance settings
#### CSS Variables
- Added `--custom-branch-menu-width` variable for setting branch menu width
- Added `--custom-user-menu-width` variable for setting user menu width
### 🌈 Style
- Optimized dashboard style on user homepage
##### More GitHub-like style
- Improved code file viewing experience (scrolling to bottom no longer causes file tree content overlap)
- Synced styles when viewing code file content (removed some bottom elements, optimized scrolling experience)
- Adjusted spacing, styles, and font sizes of page elements overall
- Synced dashboard styles under top issues/pull requests/milestones
- Synced styles of milestones/pinned Issues
- Synced page styles of notifications/subscriptions/follows/packages/tooltips/user avatar menus
- Synced branch menu width
- Synced star color for starred repositories
### 🐞 Fix
- Fixed code highlight colors for red-green color blindness theme
- Fixed button underline length for Chinese README in repositories
- Fixed content position on login two-factor authentication page
- Fixed style of operation and maintenance management panel in admin backend
- Reverted editor font size changes to avoid cursor misalignment
- Fixed rounded corners of last row in commit list
- Fixed rounded corners issue in Wiki pages and team menus under secondary navigation bar organization
- Fixed style of issue creation page
- Fixed issue where archive information box is inserted when issue timeline is too long in archived repositories
- Fixed avatar and button icon colors in PR merge operation comments under light theme

View File

@@ -30,6 +30,11 @@ Gitea 理论上小版本号变更不会修改前端布局, 所以主题的小版
>
> 自动颜色主题需要亮色和暗色的主题文件
> [!TIP]
>
> 推荐搭配 Catppuccin 文件图标浏览器插件一起使用更佳
> [github-file-explorer-icons](https://github.com/catppuccin/github-file-explorer-icons)
例: 主题文件名为 `theme-github-dark.css`,则添加 `github-dark``THEMES` 末尾
`gitea/conf/app.ini` 例:
@@ -44,13 +49,15 @@ THEMES = gitea-auto, gitea-light, gitea-dark, github-auto, github-light, github-
## 截图
![Dashboard](screenshots/dashboard.png)
### 基本主题
```ini
THEMES = github-auto, github-light, github-dark, github-soft-dark
```
<details open>
<details>
<summary>Base</summary>
<h4>theme-github-light.css</h4>
<img src="screenshots/light.png"/>
@@ -75,6 +82,22 @@ THEMES = github-tritanopia-auto, github-tritanopia-light, github-tritanopia-dark
<img src="screenshots/colorblind-dark.png"/>
</details>
### 粉色主题
```ini
THEMES = github-pink-auto, github-pink-light, github-pink-dark, github-pink-soft-dark
```
<details>
<summary>Pink</summary>
<h4>theme-github-pink-light.css</h4>
<img src="screenshots/pink/pink-light.png"/>
<h4>theme-github-pink-dark.css</h4>
<img src="screenshots/pink/pink-dark.png"/>
<h4>theme-github-pink-soft-dark.css</h4>
<img src="screenshots/pink/pink-soft-dark.png"/>
</details>
## 自定义 CSS 变量
可以根据自己的偏好自定义主题的一部分样式

View File

@@ -31,7 +31,12 @@ accepted.
> [!IMPORTANT]
>
> Automatic color theme requires both light and dark theme files
> Automatic color theme requires both light and dark theme files.
> [!TIP]
>
> Recommend using Catppuccin file icon browser plugin together for better performance.
> [github-file-explorer-icons](https://github.com/catppuccin/github-file-explorer-icons)
Example: If the theme filename is `theme-github-dark.css`, add `github-dark` to the end of `THEMES`
@@ -47,13 +52,15 @@ For details, please refer to the Gitea documentation
## Screenshots
![Dashboard](screenshots/en/dashboard-en.png)
### Basic Themes
```ini
THEMES = github-auto, github-light, github-dark, github-soft-dark
```
<details open>
<details>
<summary>Base</summary>
<h4>theme-github-light.css</h4>
<img src="screenshots/en/light.png"/>
@@ -78,6 +85,22 @@ THEMES = github-tritanopia-auto, github-tritanopia-light, github-tritanopia-dark
<img src="screenshots/en/colorblind-dark.png"/>
</details>
### Pink Themes
```ini
THEMES = github-pink-auto, github-pink-light, github-pink-dark, github-pink-soft-dark
```
<details>
<summary>Pink</summary>
<h4>theme-github-pink-light.css</h4>
<img src="screenshots/pink/en/pink-light-en.png"/>
<h4>theme-github-pink-dark.css</h4>
<img src="screenshots/pink/en/pink-dark-en.png"/>
<h4>theme-github-pink-soft-dark.css</h4>
<img src="screenshots/pink/en/pink-soft-dark-en.png"/>
</details>
## Custom CSS Variables
You can customize parts of the theme style according to your preferences

View File

@@ -1,6 +1,6 @@
{
"name": "gitea-github-theme",
"version": "1.24.6",
"version": "1.24.7",
"type": "module",
"scripts": {
"dev": "vite build --mode dev",

BIN
screenshots/dashboard.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB