mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-16 10:28:24 -07:00
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> |
||
---|---|---|
.. | ||
assignees_test.go | ||
assignees.go | ||
comment_code.go | ||
comment_list.go | ||
comment_test.go | ||
comment.go | ||
content_history_test.go | ||
content_history.go | ||
dependency_test.go | ||
dependency.go | ||
issue_index.go | ||
issue_list_test.go | ||
issue_list.go | ||
issue_lock.go | ||
issue_project.go | ||
issue_test.go | ||
issue_user_test.go | ||
issue_user.go | ||
issue_watch_test.go | ||
issue_watch.go | ||
issue_xref_test.go | ||
issue_xref.go | ||
issue.go | ||
label_test.go | ||
label.go | ||
main_test.go | ||
milestone_test.go | ||
milestone.go | ||
pull_list.go | ||
pull_test.go | ||
pull.go | ||
reaction_test.go | ||
reaction.go | ||
review_test.go | ||
review.go | ||
stopwatch_test.go | ||
stopwatch.go | ||
tracked_time_test.go | ||
tracked_time.go |