mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 04:40:31 +00:00
Compare commits
4 Commits
9bcea89fcb
...
dd6e97be1d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd6e97be1d | ||
|
|
29f983cce6 | ||
|
|
fca10130a3 | ||
|
|
8676816342 |
15
.github/FUNDING.yml
vendored
Normal file
15
.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||
polar: # Replace with a single Polar username
|
||||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
||||
thanks_dev: # Replace with a single thanks.dev username
|
||||
custom: ['https://afdian.com/a/luting']
|
||||
7
.github/release.md
vendored
7
.github/release.md
vendored
@@ -1,8 +1,3 @@
|
||||
## ✨ Feature
|
||||
|
||||
- 支持色盲主题(Beta) ( 红绿色盲和蓝色盲 ) ( Colorblind & Tritanopia )
|
||||
|
||||
## 🐞 Fix
|
||||
|
||||
- 查看代码文件页面路径栏有时内容不会居中
|
||||
- 查看代码文件页面文件树头部滚动到底部时不会固定住
|
||||
- 修复红绿色盲主题的代码高亮色
|
||||
|
||||
@@ -70,7 +70,7 @@ THEMES = github-tritanopia-auto, github-tritanopia-light, github-tritanopia-dark
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>红绿色盲 & 蓝色盲 ( Colorblind & Tritanopia )</summary>
|
||||
<summary>Colorblind & Tritanopia (红绿色盲 & 蓝色盲)</summary>
|
||||
<h4>theme-github-colorblind-light.css & theme-github-tritanopia-light.css</h4>
|
||||
<img src="screenshots/colorblind-light.png"/>
|
||||
<h4>theme-github-colorblind-dark.css & theme-github-tritanopia-dark.css</h4>
|
||||
|
||||
@@ -84,7 +84,7 @@ export type ThemeColor = {
|
||||
* github,
|
||||
* })
|
||||
*/
|
||||
export function defineTheme(themeColor: ThemeColor, chroma: Chroma | null = null): Theme {
|
||||
export function defineTheme(themeColor: ThemeColor, chroma?: Chroma): Theme {
|
||||
const brightDir = themeColor.isDarkTheme ? -1 : 1;
|
||||
|
||||
const primary: Primary = {
|
||||
|
||||
@@ -71,4 +71,4 @@ export const colorblindDarkPrettylights: prettylightsColor = {
|
||||
export const colorblindDarkColors: ThemeColor = github2ThemeColor(colorblindDarkGithubColors);
|
||||
export const colorblindDarkChroma: Chroma = prettylights2Chroma(colorblindDarkPrettylights);
|
||||
|
||||
export default defineTheme(colorblindDarkColors);
|
||||
export default defineTheme(colorblindDarkColors, colorblindDarkChroma);
|
||||
|
||||
@@ -71,4 +71,4 @@ export const colorblindLightPrettylights: prettylightsColor = {
|
||||
export const colorblindLightColors: ThemeColor = github2ThemeColor(colorblindLightGithubColors);
|
||||
export const colorblindLightChroma: Chroma = prettylights2Chroma(colorblindLightPrettylights);
|
||||
|
||||
export default defineTheme(colorblindLightColors);
|
||||
export default defineTheme(colorblindLightColors, colorblindLightChroma);
|
||||
|
||||
Reference in New Issue
Block a user