feat: 允许没有背景#4
Conversation
已修复两个 review 问题 (commit
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 44b710bb17
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (isDevMode()) { | ||
| document.body.style.background = '' | ||
| return |
There was a problem hiding this comment.
Reset text colors when bypassing the background
When no-background mode is enabled after a local custom background was used, this path clears only the inline image and returns before resetting the text CSS variables/body bg-light/bg-dark class that setTextColorTheme previously installed. The page then renders the plain fallback body background with colors chosen for the hidden old image (theme changes also re-run brightness checks against that hidden image), so titles/subtitles can have the wrong contrast until a background is selected or cleared. Reset the text theme when bypassing the image.
Useful? React with 👍 / 👎.
No description provided.