0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/release-notes/8.0.0/feat
0ko da12320a0c Replace imgage diff png background pattern with gradient (#3870)
Made the checkerboard background be more flexible in terms of scale and coloring. Provides dark theme for image diff.

I suppose these colors should not be re-used for a color-picker for a example, because it's usually more convenient to always have it in the light mode.

## Test

* go to e6d3623c7e
* or migrate https://next.forgejo.org/image-test/image-diff to your local instance

## Before/after

![image](/attachments/3835a455-69e0-4aec-bc67-5b226d8016c1)

(Old any - New Forgejo dark - New Gitea dark - New Forgejo/Gitea light)

---

Gradient property is taken from [here](https://www.reddit.com/r/css/comments/u08pf3/how_to_make_a_checkerboard_using_background/).

[CSS compatibility](https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/conic-gradient#browser_compatibility): about four years of browser versions.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3870
Reviewed-by: Mai-Lapyst <mai-lapyst@noreply.codeberg.org>
2024-05-24 17:33:13 +00:00
..
3307.md
3434.md
3615.md Add an immutable tarball link to archive download headers for Nix 2024-05-03 15:21:45 -07:00
3642.md [UI] Allow org members to navigate between the org and the dashboard 2024-05-05 23:14:57 +05:00
3654.md [FEAT] support searching non default branches/tags when using git-grep (#3654) 2024-05-14 15:41:03 +00:00
3723.md chore(release-notes): go-enry v2.8.8 2024-05-13 17:32:28 +02:00
3729.md chore(release-notes): [gitea] week 2024-20 cherry pick 2024-05-12 20:20:18 +02:00
3791.md chore(release-notes): enmime upgrade to v1.2.0 2024-05-23 11:44:26 +02:00
3808.md chore(release-notes): goth upgrade to v1.80.0 2024-05-23 10:55:32 +02:00
3836.md feat: parse prefix from redis URI for queues (#3836) 2024-05-20 14:10:54 +00:00
3847.md feat: wiki search using git-grep 2024-05-20 13:48:50 +00:00
3870.md Replace imgage diff png background pattern with gradient (#3870) 2024-05-24 17:33:13 +00:00