1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-17 03:38:13 +00:00

Support blue yellow colorblind theme (#35910)

This icon is from GitHub:

<img width="350" height="350" alt="image"
src="https://github.com/user-attachments/assets/c3f31901-5359-4b7f-ae68-eddcec63df53"
/>

---------

Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com>
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com>
This commit is contained in:
鲁汀
2025-11-12 02:21:15 +08:00
committed by GitHub
parent 9affb513a8
commit 2223be2cc4
6 changed files with 58 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ func (info *ThemeMetaInfo) GetDescription() string {
if info.ColorblindType == "red-green" {
return "Red-green colorblind friendly"
}
if info.ColorblindType == "blue-yellow" {
return "Blue-yellow colorblind friendly"
}
return ""
}
@@ -46,6 +49,9 @@ func (info *ThemeMetaInfo) GetExtraIconName() string {
if info.ColorblindType == "red-green" {
return "gitea-colorblind-redgreen"
}
if info.ColorblindType == "blue-yellow" {
return "gitea-colorblind-blueyellow"
}
return ""
}