mirror of https://github.com/go-gitea/gitea.git
## Summary This PR fixes #36255 The image captcha was using random colors which often resulted in poor contrast against dark backgrounds, making it difficult or impossible for users to read in dark mode. ## Changes - Added a custom color palette to the image captcha configuration in `services/context/captcha.go` - The palette uses high-contrast colors (bright red, blue, green, yellow, purple, and dark blue-gray) that provide good visibility in both light and dark themes - This improves accessibility and user experience without changing any existing functionality ## Testing - Builds successfully - All existing tests pass - The color palette is properly supported by the upstream `gitea.com/go-chi/captcha` library --- Generated with Claude Code --------- Signed-off-by: majiayu000 <1835304752@qq.com> Co-authored-by: silverwind <me@silverwind.io> |
||
|---|---|---|
| .. | ||
| upload | ||
| access_log.go | ||
| access_log_test.go | ||
| api.go | ||
| api_org.go | ||
| api_test.go | ||
| base.go | ||
| base_form.go | ||
| base_path.go | ||
| base_test.go | ||
| captcha.go | ||
| context.go | ||
| context_cookie.go | ||
| context_model.go | ||
| context_request.go | ||
| context_response.go | ||
| context_template.go | ||
| context_test.go | ||
| org.go | ||
| package.go | ||
| pagination.go | ||
| pagination_test.go | ||
| permission.go | ||
| private.go | ||
| repo.go | ||
| response.go | ||
| user.go | ||
| utils.go | ||