1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-16 06:13:43 -04:00
gitea/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>
2023-10-06 09:46:36 +02:00
..
eval
scopedtmpl Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
vars
base.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
dynamic.go
helper_test.go
helper.go Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 2023-10-06 09:46:36 +02:00
htmlrenderer_test.go
htmlrenderer.go Start using template context function (#26254) 2023-08-08 01:22:47 +00:00
mailer.go
static.go
templates_bindata.go
util_avatar.go Use template context function for avatar rendering (#26385) 2023-08-10 11:19:39 +08:00
util_dict.go Use Set[Type] instead of map[Type]bool/struct{}. (#26804) 2023-08-30 06:55:25 +00:00
util_json.go
util_misc.go More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
util_render_test.go
util_render.go Render code blocks in repo description (#26830) 2023-08-31 05:01:01 +00:00
util_slice.go
util_string.go Refactor og:description to limit the max length (#26876) 2023-09-03 01:43:29 +00:00
util_test.go