feat(ui): FluentIconsMappingGenerator Roslyn 生成器、FIExtension XAML 扩展#1791
Merged
HelloWRC merged 16 commits intoMay 23, 2026
Conversation
Contributor
|
在提交 cf65eb3 中, 成员的命名规则改为大驼峰以规避和 C# 关键字或保留字撞车 Lucide 技术细节同 FluentIcon, 不过codepoints表是 |
取缩写是为了避免和 FluentIcon : FontIcon 冲突
Co-authored-by: codefactor-io[bot] <47775046+codefactor-io[bot]@users.noreply.github.com>
07526ed to
4f6da5b
Compare
Member
|
@lrsgzs 这个可以 review 了吗 |
HelloWRC
approved these changes
May 23, 2026
Member
Koharu-Mizuki
pushed a commit
to Koharu-Mizuki/ClassIsland-RB
that referenced
this pull request
Jun 19, 2026
…lassIsland#1791) * chore: 添加图标映射json文件 * feat(roslyn): 添加 FluentIconsMapping 生成器 * feat(ui): 实现 FI (Fluent Icon) XAML 扩展,并添加到 ci 命名空间 取缩写是为了避免和 FluentIcon : FontIcon 冲突 * fix: 修复 CodeFactor 格式化错误 Co-authored-by: codefactor-io[bot] <47775046+codefactor-io[bot]@users.noreply.github.com> * fix: 修改 生成器 System.Text.Json 由 4.7.2 到 6.0.11 * fix: 生成器使用专用Json解码器规避依赖问题 * refactor: 重构生成器以使其可复用 * chore: 添加lucide codepoints映射表及其转换脚本 * refactor: 使源代码注册流程可复用并添加Lucide支持 * fix: 使用大驼峰以规避保留字和关键字 * feat(ui): 实现 Lucide Icon XAML 扩展 * refactor: 重命名生成器项目 * fix: FIExtension summary 错误 * fix: FIExtension summary 错误 x2 * fix: LIExtension summary 错误 * fix: ClassIsland.Core.csproj 排除 lucide.json 资源? --------- Co-authored-by: codefactor-io[bot] <47775046+codefactor-io[bot]@users.noreply.github.com> Co-authored-by: LiPolymer <fish@lipoly.ink>
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.

这个 Pull Request 做了什么?
本 PR 实现了根据已有图标字体映射文件,通过
IconsMappingGeneratorRoslyn 生成器生成FluentIcons静态类、FluentIconKind枚举,LucideIcons静态类、LucideIconKind枚举,并实现了FIExtension、LIExtensionXAML 扩展。其中,
FluentIcons静态类的成员均为 常量字符串。FluentIconKind枚举用于FIExtension的 IDE 补全支持。FIExtensionXAML 扩展于ci命名空间 (http://classisland.tech/schemas/xaml/core) 可用。技术上,会将
ic_fluent_access_time_20_filled转换成AccessTimeFilled作为成员名称,以获得更短的长度。使用示例(未作实际变更):
Lucide Icon 支持由 @LiPolymer 提供,用法相同。
相关 Issue
检查清单