Skip to content

Commit c92043b

Browse files
authored
ThemeMetaInfo add support for blue-yellow colorblind theme
Signed-off-by: 鲁汀 <[email protected]>
1 parent 60314cb commit c92043b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/webtheme/webtheme.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,19 @@ func (info *ThemeMetaInfo) GetDescription() string {
3939
if info.ColorblindType == "red-green" {
4040
return "Red-green colorblind friendly"
4141
}
42+
if info.ColorblindType == "blue-yellow" {
43+
return "Blue-yellow colorblind friendly"
44+
}
4245
return ""
4346
}
4447

4548
func (info *ThemeMetaInfo) GetExtraIconName() string {
4649
if info.ColorblindType == "red-green" {
4750
return "gitea-colorblind-redgreen"
4851
}
52+
if info.ColorblindType == "blue-yellow" {
53+
return "gitea-colorblind-blueyellow"
54+
}
4955
return ""
5056
}
5157

0 commit comments

Comments
 (0)