-
-
Notifications
You must be signed in to change notification settings - Fork 362
feat(FluentSystemIcons): add microsoft fluent free icon set #6483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7ac437a
doc: 增加多语言资源文件
ArgoZhang f30f8c5
feat: 增加样式加载
ArgoZhang 965713c
doc: 增加示例
ArgoZhang b913203
doc: 更新示例
ArgoZhang cdcc42f
chore: 更新依赖 9.0.1 版本
ArgoZhang 7d01360
doc: 增加微软图标菜单
ArgoZhang c7dd505
doc: 更新文档
ArgoZhang 56197fd
doc: 更新注释文档
ArgoZhang 5ddc53a
doc: 更新文档
ArgoZhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
37 changes: 37 additions & 0 deletions
37
src/BootstrapBlazor.Server/Components/Samples/Icons/FluentSystemIcons.razor
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| @page "/fluent-icon" | ||
| @inject IStringLocalizer<FluentSystemIcons> Localizer | ||
|
|
||
| <HeadContent> | ||
| <link rel="stylesheet" href="@Assets["_content/BootstrapBlazor.FluentSystemIcon/FluentSystemIcons-Regular.css"]" /> | ||
| </HeadContent> | ||
|
|
||
| <h3>@Localizer["Title"]</h3> | ||
|
|
||
| <h4>@((MarkupString)Localizer["BaseUsageText"].Value)</h4> | ||
|
|
||
| <PackageTips Name="BootstrapBlazor.FluentSystemIcon" /> | ||
|
|
||
| <Tips class="mt-3"> | ||
| <div>@Localizer["P1"] <a href="https://www.nuget.org/packages/BootstrapBlazor.FluentSystemIcon/" target="_blank">BootstrapBlazor.FluentSystemIcon</a> @Localizer["P2"]</div> | ||
| </Tips> | ||
|
|
||
| <Pre><link href="_content/BootstrapBlazor.FluentSystemIcon/FluentSystemIcons-Regular.css" rel="stylesheet"></Pre> | ||
|
|
||
| <p class="code-label">是我见过设计最糟糕的图标库,太不专业了!!!</p> | ||
|
|
||
| <ul class="ul-demo"> | ||
| <li>Filled: FluentSystemIcons-Filled.css</li> | ||
| <li>Filled: FluentSystemIcons-Light.css</li> | ||
| <li>Filled: FluentSystemIcons-Regular.css</li> | ||
| <li>Filled: FluentSystemIcons-Resizable.css</li> | ||
| </ul> | ||
ArgoZhang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| <p class="code-label">注意:四种类型的图标库必须独立使用,不可以一起引用使用会冲突导致最终显示的图标不是你想要的图标</p> | ||
|
|
||
| <div class="mb-2" style="font-size: 1.2em;"> | ||
| <i class="icon-ic_fluent_clipboard_search_24_regular"></i> | ||
| </div> | ||
|
|
||
| <Pre><i class="icon-ic_fluent_clipboard_search_24_regular"></i></Pre> | ||
|
|
||
| <div>@((MarkupString)Localizer["Icons"].Value)</div> | ||
14 changes: 14 additions & 0 deletions
14
src/BootstrapBlazor.Server/Components/Samples/Icons/FluentSystemIcons.razor.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the Apache 2.0 License | ||
| // See the LICENSE file in the project root for more information. | ||
| // Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone | ||
|
|
||
| namespace BootstrapBlazor.Server.Components.Samples.Icons; | ||
|
|
||
| /// <summary> | ||
| /// 微软 Fluent UI 图标库 | ||
| /// </summary> | ||
| public partial class FluentSystemIcons | ||
| { | ||
|
|
||
| } |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.