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
原逻辑在网页主题和系统主题不一致时,加载过程会伴随一次屏幕闪烁。本修改修复了这个问题。