Skip to content

Commit 63f3d2e

Browse files
authored
google font icons update (#57)
* Update GoogleFontIconName enum with new icons Added numerous Google Font Icon names to the `GoogleFontIconName` enum. Removed several existing icons, including `Rotation3D`, `AccountCircleOff`, and others. A new link to a GitHub repository containing versions of the icons was also added to the summary documentation. NOTE: This commit message is auto-generated using GitHub Copilot. * Update GoogleFontIconName enum with new icons The `GoogleFontIconName` enum in `GoogleFontIconName.cs` has been updated to reflect changes in the icon set. A total of 66 icon names have been removed, including `OneTwoThree`, `TenK`, and `TenMp`. Additionally, 20 new icon names have been added, such as `NineK`, `OneK`, `ThirteenMp`, and `TwoK`. NOTE: This commit message is auto-generated using GitHub Copilot. * Expand GoogleFontIconName enum and update utility mapping The `GoogleFontIconName` enum in `GoogleFontIconName.cs` has been expanded with numerous new icon names added, including `OneTwoThree`, `TenK`, and `AccessibleMenu`, while several existing icons like `AccessAlarm` and `AddAlarm` have been removed. In the `GoogleFontIconUtility` class, the switch statement has been updated to reflect the new naming convention, specifically changing `GoogleFontIconName.Rotation3D` to `GoogleFontIconName.ThreeDRotation`. Other mappings remain unchanged to ensure continued functionality. NOTE: This commit message is auto-generated using GitHub Copilot. * Update icon mappings in GoogleFontIconUtility The `ToIconName` method has been enhanced with numerous new icon mappings for various `GoogleFontIconName` values. Several existing mappings, particularly those related to alarm icons and ads, have been removed. This update broadens the icon utility by adding a diverse range of new icons, including accessibility, arrows, car features, and keyboard controls. NOTE: This commit message is auto-generated using GitHub Copilot. * Refactor GoogleFontIconName enum entries Reorganized the `GoogleFontIconName` enum by removing and reordering entries: `OneTwoThree`, `TenK`, `TenMp`, and `ElevenMp`. The entry `AvTimer` was removed and re-added, while `Av1` was added in its place for improved clarity. NOTE: This commit message is auto-generated using GitHub Copilot. * Update GoogleFontIconName and refactor icon utility The `GoogleFontIconName` enum has been updated with numerous new icon names and their corresponding XML summary comments, while some existing names have been removed. This enhances the icon library's range. Additionally, the previous `GoogleFontIconUtility` class has been removed, indicating a potential restructuring of icon management. A new `GoogleFontIconUtility` class has been added to the `BlazorExpress.Bulma` namespace, providing methods for generating CSS class names for Google Font icons, including prefix retrieval and style conversion. NOTE: This commit message is auto-generated using GitHub Copilot. * Add icon count display and improve layout structure This update introduces a new block to show the total number of icons (`Icons Count: @iconsCount`) at the top of the icon grid. The icon display has been restructured to ensure each icon and its name are properly contained within a single cell. A new `iconsCount` variable is added to track the number of icons, calculated during the `OnInitialized` lifecycle method, enhancing the overall organization of the icon display. NOTE: This commit message is auto-generated using GitHub Copilot. * Update GoogleFontIconName enum with new icons The `GoogleFontIconName` enum in `GoogleFontIconName.cs` has been extensively updated. This includes: - **Renaming**: Several icons have been renamed for clarity, such as `Beenhere` to `Beehive` and `Biotech` to `Bill`. - **Additions**: Numerous new icons have been introduced, including `Beehive`, `BellScope`, and `BiometricFingerprint`, significantly expanding the icon set. - **Removals**: Some icons, like `Biotech`, `Blanket`, and `Blinds`, have been removed, reflecting a shift in design focus. - **Modifications**: Existing icons have been enhanced with additional variants, such as multiple representations for `WifiCalling`. These changes aim to modernize the icon set, improve clarity, and enhance usability for developers. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 3728175 commit 63f3d2e

4 files changed

Lines changed: 11187 additions & 194 deletions

File tree

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
1+
<Block>
2+
Icons Count: @iconsCount
3+
</Block>
4+
15
<div class="grid">
2-
@foreach (var item in Enum.GetValues<GoogleFontIconName>().Where(x => x != GoogleFontIconName.None))
6+
@if (allIcons is not null && allIcons.Any())
37
{
4-
<div class="cell has-text-centered has-background-light is-clickable py-3">
5-
<div>
6-
<GoogleFontIcon Name="item" />
7-
</div>
8-
<div>
9-
@item.ToString()
8+
foreach (var item in Enum.GetValues<GoogleFontIconName>().Where(x => x != GoogleFontIconName.None))
9+
{
10+
<div class="cell has-text-centered has-background-light is-clickable py-3">
11+
<div>
12+
<GoogleFontIcon Name="item" />
13+
</div>
14+
<div>
15+
@item.ToString()
16+
</div>
1017
</div>
11-
</div>
18+
}
1219
}
1320
</div>
1421

1522
<style>
1623
.cell:hover {
1724
color: hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-l)) !important;
1825
}
19-
</style>
26+
</style>
27+
28+
@code {
29+
int iconsCount = 0;
30+
IEnumerable<GoogleFontIconName>? allIcons;
31+
32+
protected override void OnInitialized()
33+
{
34+
allIcons = Enum.GetValues<GoogleFontIconName>().Where(x => x != GoogleFontIconName.None);
35+
iconsCount = allIcons.Count();
36+
base.OnInitialized();
37+
}
38+
}

0 commit comments

Comments
 (0)