mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-28 10:19:38 +01:00
## 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>