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.
forgejo/modules/templates
silverwind 023e937141
Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419)
Part of https://github.com/go-gitea/gitea/issues/27097:

- `gitea` theme is renamed to `gitea-light`
- `arc-green` theme is renamed to `gitea-dark`
- `auto` theme is renamed to `gitea-auto`

I put both themes in separate CSS files, removing all colors from the
base CSS. Existing users will be migrated to the new theme names. The
dark theme recolor will follow in a separate PR.

## ⚠️ BREAKING ⚠️

1. If there are existing custom themes with the names `gitea-light` or
`gitea-dark`, rename them before this upgrade and update the `theme`
column in the `user` table for each affected user.
2. The theme in `<html>` has moved from `class="theme-name"` to
`data-theme="name"`, existing customizations that depend on should be
updated.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
9 months ago
..
eval Use a general Eval function for expressions in templates. (#23927) 1 year ago
scopedtmpl Replace `interface{}` with `any` (#25686) 1 year ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Replace `util.SliceXxx` with `slices.Xxx` (#26958) 10 months ago
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
helper.go Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 9 months ago
helper_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
htmlrenderer.go Start using template context function (#26254) 11 months ago
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 1 year ago
mailer.go Improve RunMode / dev mode (#24886) 1 year ago
static.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util_avatar.go Use template context function for avatar rendering (#26385) 11 months ago
util_dict.go Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 10 months ago
util_json.go Improve template helper (#24417) 1 year ago
util_misc.go More `db.DefaultContext` refactor (#27265) 9 months ago
util_render.go Render code blocks in repo description (#26830) 10 months ago
util_render_test.go Fix missing commit message body when the message has leading newlines (#25418) 1 year ago
util_slice.go Improve template helper functions: string/slice (#24266) 1 year ago
util_string.go Refactor `og:description` to limit the max length (#26876) 10 months ago
util_test.go Improve template helper functions: string/slice (#24266) 1 year ago