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 | |
---|---|---|
.. | ||
assignees.go | 2 years ago | |
assignees_test.go | 2 years ago | |
comment.go | 2 years ago | |
comment_code.go | 2 years ago | |
comment_list.go | 2 years ago | |
comment_test.go | 2 years ago | |
content_history.go | 2 years ago | |
content_history_test.go | 2 years ago | |
dependency.go | 2 years ago | |
dependency_test.go | 2 years ago | |
issue.go | 2 years ago | |
issue_index.go | 2 years ago | |
issue_list.go | 2 years ago | |
issue_list_test.go | 2 years ago | |
issue_lock.go | 2 years ago | |
issue_project.go | 2 years ago | |
issue_test.go | 2 years ago | |
issue_user.go | 2 years ago | |
issue_user_test.go | 2 years ago | |
issue_watch.go | 2 years ago | |
issue_watch_test.go | 2 years ago | |
issue_xref.go | 2 years ago | |
issue_xref_test.go | 2 years ago | |
label.go | 2 years ago | |
label_test.go | 2 years ago | |
main_test.go | 2 years ago | |
milestone.go | 2 years ago | |
milestone_test.go | 2 years ago | |
pull.go | 2 years ago | |
pull_list.go | 2 years ago | |
pull_test.go | 2 years ago | |
reaction.go | 2 years ago | |
reaction_test.go | 2 years ago | |
review.go | 2 years ago | |
review_test.go | 2 years ago | |
stopwatch.go | 2 years ago | |
stopwatch_test.go | 2 years ago | |
tracked_time.go | 2 years ago | |
tracked_time_test.go | 2 years ago |