-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename the default themes to gitea-light, gitea-dark, gitea-auto #27419
Conversation
|
Yes, xorm will convert `word` according to different databases. |
Hmm… I'd like to wait with this PR until 1.21.0 has been released. |
Which backports? Only backports that have CSS variable changes will present merge conflicts that are easily resolved. |
Should the |
I guess we could, I like such consistency. Or we go the other way and name them auto,light,dark. |
I think gitea-* is better to indicate that these are our official themes |
* origin/main: When comparing with an non-exist repository, return 404 but 500 (go-gitea#27437) Fix pr template (go-gitea#27436) Use minimal required version on CI and remove unnecessary services (go-gitea#27429) Fix missing `ctx` in new_form.tmpl (go-gitea#27434) Use flex-container for repo and org settings (go-gitea#27418) Fix yet another `ctx` template bug (go-gitea#27417) Add Index to `action.user_id` (go-gitea#27403) [skip ci] Updated translations via Crowdin
One more change added: The theme name was previously on HTML |
Co-authored-by: Lunny Xiao <[email protected]>
* locale | ||
* Flash | ||
* ErrorMsg | ||
* SignedUser (optional) | ||
*/}} | ||
<!DOCTYPE html> | ||
<html lang="{{.locale.Lang}}" class="theme-{{if .SignedUser.Theme}}{{.SignedUser.Theme}}{{else}}{{DefaultTheme}}{{end}}"> | ||
<html lang="{{.locale.Lang}}" data-theme="{{ThemeName .SignedUser}}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the data-theme
used for? Especially in the 500 template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used at all by our first-party code, but it's useful to have imho, if only for customization. Previously the class was used at one point in time for Monaco, but that has been replaced by --is-dark-theme
.
* giteaoffical/main: (79 commits) Pre-register OAuth application for tea (go-gitea#27509) Fix mermaid flowchart margin issue (go-gitea#27503) add a shortcut to user's profile page to admin user details (go-gitea#27299) Fix actionlint (go-gitea#27513) [skip ci] Updated translations via Crowdin Update JS and PY dependencies (go-gitea#27501) Improve feed icons and feed merge text color (go-gitea#27498) Downgrade `go-co-op/gocron` to v1.31.1 (go-gitea#27511) Enable markdownlint `no-duplicate-header` (go-gitea#27500) bump go-deps (go-gitea#27489) Apply to became a maintainer (go-gitea#27491) change runner for binary [skip ci] Updated translations via Crowdin Remove .exe suffix when cross-compiling on Windows (go-gitea#27448) move re-useable workflow add checkout to disk-clean use hosted runners for nightly actions (go-gitea#27485) Avoid run change title process when the title is same (go-gitea#27467) Fix panic in storageHandler (go-gitea#27446) Rename the default themes to gitea-light, gitea-dark, gitea-auto (go-gitea#27419) ...
Part of #27097:
gitea
theme is renamed togitea-light
arc-green
theme is renamed togitea-dark
auto
theme is renamed togitea-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.
gitea-light
,gitea-dark
orgitea-auto
, rename them before this upgrade and update thetheme
column in theuser
table for each affected user.<html>
tag has moved fromclass="theme-name"
todata-theme="name"
, existing customizations that depend on the previous class need to be updated.ui.DEFAULT_THEME
, you need to update to the new values.