深浅色切换优化 / 修复加载闪屏的bug#392
Merged
Merged
Conversation
a33325f to
c930c4b
Compare
Owner
|
感谢贡献,请将这个 PR 提交 dev 分支。 |
Contributor
Author
|
应该改过来了w |
Contributor
Author
|
我意识到的第二个commit并没能根除这个问题。以前是用户主题和系统主题不一致时会闪烁,现在是显示深色时闪烁。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
深浅色切换逻辑优化
原逻辑只能在页面打开时感知到系统的主题变换并自动切换。若上午打开,晚上再打开,主题无法自动切换。
修改后的逻辑参考了fluid主题的实现方式。当网页的主题和系统主题一致时,采用自动切换。
修复加载闪屏的bug
原逻辑在网页主题和系统主题不一致时,加载过程会伴随一次屏幕闪烁。本修改修复了这个问题。