feat: 添加使用系统强调色作为主题颜色的样式插件#4
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/BlockG-ws/b23-evolved/sessions/447a4476-450c-4048-997b-4ca7499837c3 Co-authored-by: GrassBlock1 <46253950+GrassBlock1@users.noreply.github.com>
Agent-Logs-Url: https://github.com/BlockG-ws/b23-evolved/sessions/447a4476-450c-4048-997b-4ca7499837c3 Co-authored-by: GrassBlock1 <46253950+GrassBlock1@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
GrassBlock1
May 1, 2026 09:15
View session
There was a problem hiding this comment.
Pull request overview
新增一个样式插件,用系统 CSS 颜色关键字 AccentColor 读取操作系统强调色,并将其同步为 bilibili-evolved 的主题色,以便界面风格与系统主题保持一致。
Changes:
- 新增
style.accentColor插件:运行时读取系统强调色并写入themeColor - 增加对应的预构建 UMD bundle 产物,供 registry 分发使用
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| registry/lib/plugins/style/accent-color/index.ts | 插件源码:读取 AccentColor 并设置通用设置的 themeColor |
| registry/dist/plugins/style/accent-color.js | 预构建的 UMD bundle(registry 分发产物) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…allback Agent-Logs-Url: https://github.com/BlockG-ws/b23-evolved/sessions/d26e3c7b-87c0-46a4-ad4b-63b0d9909714 Co-authored-by: GrassBlock1 <46253950+GrassBlock1@users.noreply.github.com>
GrassBlock1
approved these changes
May 1, 2026
|
@copilot fix ESLint errors |
Agent-Logs-Url: https://github.com/BlockG-ws/b23-evolved/sessions/513f94c1-ac6d-4f86-ace6-7f754400e46e Co-authored-by: GrassBlock1 <46253950+GrassBlock1@users.noreply.github.com>
Author
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.
registry/lib/plugins/style/accent-color/index.tsregistry/dist/plugins/style/accent-color.jsgetComputedStyle(el).colorand add curly braces toif (!match)