diff options
author | JP <jeanpaulkhawam@protonmail.com> | 2023-11-08 02:53:37 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-02-05 16:05:02 +0100 |
commit | 56c8f98e4c3cab88e3646acda658c6e28a08b0c9 (patch) | |
tree | dd07da628113be97bc4ba283ddba162921da40f4 /services/forms | |
parent | [BRANDING] add Forgejo Git Service and migration UI (diff) | |
download | forgejo-56c8f98e4c3cab88e3646acda658c6e28a08b0c9.tar.xz forgejo-56c8f98e4c3cab88e3646acda658c6e28a08b0c9.zip |
[THEME] Add colorblind theme variants
This PR adds colorblind theme variants of the forgejo themes. I duplicated the forjego light and dark themes and only changed the lines related to diff colors for added and removed rows/words.
I am not a designer, and I am also colorblind, so better suggestions of colors are most welcome. However, this is a good start as I can at least personally see the colors now. I got the colors for the dark theme from the GitHub diff colors, the light ones I couldn't get from GitHub as they use white as a plain background, which Forgejo's theme doesn't, so they were decided on after a bit of random testing.
Resolves #986
(cherry picked from commit dcdb4a372da814eda27065c58d03100f0589f0a7)
Diffstat (limited to 'services/forms')
-rw-r--r-- | services/forms/user_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/forms/user_form.go b/services/forms/user_form.go index cbab274238..fd4649025f 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.go @@ -277,7 +277,7 @@ func (f *AddEmailForm) Validate(req *http.Request, errs binding.Errors) binding. // UpdateThemeForm form for updating a users' theme type UpdateThemeForm struct { - Theme string `binding:"Required;MaxSize(30)"` + Theme string `binding:"Required;MaxSize(64)"` } // Validate validates the field |