mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ea7954f069
Close #24508 Main changes: As discussed in the issue 1. Change luminance calculation function to use [Relative Luminance](https://www.w3.org/WAI/GL/wiki/Relative_luminance) 2. Move the luminance related functions into color.go/color.js 3. Add tests for both the files (Not sure if test cases are too many now) Before (tests included by `UseLightTextOnBackground` are labels started with `##`): https://try.gitea.io/HesterG/testrepo/labels After: <img width="1307" alt="Screen Shot 2023-05-08 at 13 37 55" src="https://user-images.githubusercontent.com/17645053/236742562-fdfc3a4d-2fab-466b-9613-96f2bf96b4bc.png"> <img width="1289" alt="Screen Shot 2023-05-08 at 13 38 06" src="https://user-images.githubusercontent.com/17645053/236742570-022db68e-cec0-43bb-888a-fc54f5332cc3.png"> <img width="1299" alt="Screen Shot 2023-05-08 at 13 38 20" src="https://user-images.githubusercontent.com/17645053/236742572-9af1de45-fb7f-460b-828d-ba25fae20f51.png"> --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io> |
2 years ago | |
---|---|---|
.. | ||
eval | 2 years ago | |
scopedtmpl | 2 years ago | |
vars | 2 years ago | |
base.go | 2 years ago | |
dynamic.go | 2 years ago | |
helper.go | 2 years ago | |
helper_test.go | 2 years ago | |
htmlrenderer.go | 2 years ago | |
htmlrenderer_test.go | 2 years ago | |
mailer.go | 2 years ago | |
static.go | 2 years ago | |
templates_bindata.go | 2 years ago | |
util_avatar.go | 2 years ago | |
util_dict.go | 2 years ago | |
util_json.go | 2 years ago | |
util_misc.go | 2 years ago | |
util_render.go | 2 years ago | |
util_slice.go | 2 years ago | |
util_string.go | 2 years ago | |
util_test.go | 2 years ago |