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:
@@ -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 ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user