Skip to content

enhance: improve diff contrast in light and dark themes (#37477) - #38574

Merged
silverwind merged 1 commit into
go-gitea:release/v1.27from
GiteaBot:backport-37477-v1.27
Jul 22, 2026
Merged

enhance: improve diff contrast in light and dark themes (#37477)#38574
silverwind merged 1 commit into
go-gitea:release/v1.27from
GiteaBot:backport-37477-v1.27

Conversation

@GiteaBot

Copy link
Copy Markdown
Collaborator

Backport #37477 by @cyphercodes

Fixes #37448

Adjust the diff stat counter and syntax colors in both light and dark themes to github-like colors that meet a >= 5:1 contrast floor (>= 7:1 for syntax names on diff rows), and make the counters semibold.

Fixes go-gitea#37448

Adjust the diff stat counter and syntax colors in both light and dark
themes to github-like colors that meet a >= 5:1 contrast floor (>= 7:1
for syntax names on diff rows), and make the counters semibold.

---------

Signed-off-by: cyphercodes <cyphercodes@users.noreply.github.com>
Co-authored-by: cyphercodes <cyphercodes@users.noreply.github.com>
Co-authored-by: Hermes Agent (GPT-5.5) <hermes-agent@nousresearch.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Hermes Agent <hermes@noreply.local>
Co-authored-by: silverwind <me@silverwind.io>
@GiteaBot GiteaBot added type/enhancement An improvement of existing functionality lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 22, 2026
@GiteaBot GiteaBot added this to the 1.27.1 milestone Jul 22, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 22, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 22, 2026
@silverwind
silverwind enabled auto-merge (squash) July 22, 2026 11:45
@silverwind
silverwind merged commit e2f0358 into go-gitea:release/v1.27 Jul 22, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants