Skip to content

Commit f576bbe

Browse files
committed
refactor: 增加图标主题
1 parent 6bb601f commit f576bbe

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

src/BootstrapBlazor/Icons/BootstrapIcons.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ internal static class BootstrapIcons
99
{
1010
public static Dictionary<ComponentIcons, string> Icons => new()
1111
{
12-
// AnchorLink 组件
1312
{ ComponentIcons.AnchorLinkIcon, "bi bi-link-45deg" },
14-
15-
// Avatar 组件
1613
{ ComponentIcons.AvatarIcon, "bi bi-person-fill" },
1714
{ ComponentIcons.AutoFillIcon, "bi bi-chevron-up" },
1815
{ ComponentIcons.AutoCompleteIcon, "bi bi-chevron-up" },
@@ -24,23 +21,23 @@ internal static class BootstrapIcons
2421
{ ComponentIcons.CameraPlayIcon, "bi bi-circle-play" },
2522
{ ComponentIcons.CameraStopIcon, "bi bi-circle-stop" },
2623
{ ComponentIcons.CameraPhotoIcon, "bi bi-camera" },
24+
2725
{ ComponentIcons.CardCollapseIcon, "bi bi-arrow-right-circle-fill" },
2826
{ ComponentIcons.CarouselPreviousIcon, "bi bi-chevron-left" },
2927
{ ComponentIcons.CarouselNextIcon, "bi bi-chevron-right" },
3028
{ ComponentIcons.CascaderIcon, "bi bi-chevron-up" },
3129
{ ComponentIcons.CascaderSubMenuIcon, "bi bi-chevron-down" },
3230
{ ComponentIcons.ConsoleClearButtonIcon, "bi bi-x" },
3331

34-
// DateTimePicker 组件
3532
{ ComponentIcons.DatePickBodyPreviousYearIcon, "bi bi-chevron-double-left" },
3633
{ ComponentIcons.DatePickBodyPreviousMonthIcon, "bi bi-chevron-left" },
3734
{ ComponentIcons.DatePickBodyNextMonthIcon, "bi bi-chevron-right" },
3835
{ ComponentIcons.DatePickBodyNextYearIcon, "bi bi-chevron-double-right" },
3936
{ ComponentIcons.DateTimePickerIcon, "bi bi-calendar" },
37+
4038
{ ComponentIcons.TimePickerCellUpIcon, "bi bi-chevron-up" },
4139
{ ComponentIcons.TimePickerCellDownIcon, "bi bi-chevron-down" },
4240

43-
// DateTimeRange 组件
4441
{ ComponentIcons.DateTimeRangeIcon, "bi bi-calendar-range" },
4542
{ ComponentIcons.DateTimeRangeClearIcon, "bi bi-x-circle" },
4643

@@ -89,6 +86,11 @@ internal static class BootstrapIcons
8986
{ ComponentIcons.InputNumberPlusIcon, "bi bi-plus-circle" },
9087

9188
{ ComponentIcons.LayoutMenuBarIcon, "bi bi-list" },
89+
{ ComponentIcons.TabContextMenuRefreshIcon, "bi bi-arrow-clockwise" },
90+
{ ComponentIcons.TabContextMenuCloseIcon, "bi bi-x" },
91+
{ ComponentIcons.TabContextMenuCloseOtherIcon, "bi bi-arrow" },
92+
{ ComponentIcons.TabContextMenuCloseAllIcon, "bi bi-arrow-left-right" },
93+
9294
{ ComponentIcons.LogoutLinkIcon, "bi bi-box-arrow-right" },
9395

9496
{ ComponentIcons.LoadingIcon, "bi bi-arrow-clockwise bi-spin" },

src/BootstrapBlazor/Icons/FontAwesomeIcons.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ internal static class FontAwesomeIcons
2121
{ ComponentIcons.CameraPlayIcon, "fa-solid fa-circle-play" },
2222
{ ComponentIcons.CameraStopIcon, "fa-solid fa-circle-stop" },
2323
{ ComponentIcons.CameraPhotoIcon, "fa-solid fa-camera-retro" },
24+
2425
{ ComponentIcons.CardCollapseIcon, "fa-solid fa-circle-chevron-right" },
2526
{ ComponentIcons.CarouselPreviousIcon, "fa-solid fa-angle-left" },
2627
{ ComponentIcons.CarouselNextIcon, "fa-solid fa-angle-right" },
@@ -32,7 +33,6 @@ internal static class FontAwesomeIcons
3233
{ ComponentIcons.DatePickBodyPreviousMonthIcon, "fa-solid fa-angle-left" },
3334
{ ComponentIcons.DatePickBodyNextMonthIcon, "fa-solid fa-angle-right" },
3435
{ ComponentIcons.DatePickBodyNextYearIcon, "fa-solid fa-angles-right" },
35-
3636
{ ComponentIcons.DateTimePickerIcon, "fa-regular fa-calendar-days" },
3737

3838
{ ComponentIcons.TimePickerCellUpIcon, "fa-solid fa-angle-up" },
@@ -86,6 +86,11 @@ internal static class FontAwesomeIcons
8686
{ ComponentIcons.InputNumberPlusIcon, "fa-solid fa-circle-plus" },
8787

8888
{ ComponentIcons.LayoutMenuBarIcon, "fa-solid fa-bars" },
89+
{ ComponentIcons.TabContextMenuRefreshIcon, "fa-fw fa-solid fa-rotate-right" },
90+
{ ComponentIcons.TabContextMenuCloseIcon, "fa-fw fa-solid fa-xmark" },
91+
{ ComponentIcons.TabContextMenuCloseOtherIcon, "fa-fw fa-solid fa-left-right" },
92+
{ ComponentIcons.TabContextMenuCloseAllIcon, "fa-fw fa-solid fa-arrows-left-right-to-line" },
93+
8994
{ ComponentIcons.LogoutLinkIcon, "fa-solid fa-key" },
9095

9196
{ ComponentIcons.LoadingIcon, "fa-solid fa-fw fa-spin fa-spinner" },

src/BootstrapBlazor/Icons/MaterialDesignIcons.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ internal static class MaterialDesignIcons
99
{
1010
public static Dictionary<ComponentIcons, string> Icons => new()
1111
{
12-
// AnchorLink 组件
1312
{ ComponentIcons.AnchorLinkIcon, "mdi mdi-link-variant" },
14-
15-
// Avatar 组件
1613
{ ComponentIcons.AvatarIcon, "mdi mdi-account" },
1714
{ ComponentIcons.AutoFillIcon, "mdi mdi-chevron-up" },
1815
{ ComponentIcons.AutoCompleteIcon, "mdi mdi-chevron-up" },
@@ -24,23 +21,23 @@ internal static class MaterialDesignIcons
2421
{ ComponentIcons.CameraPlayIcon, "mdi mdi-play-circle-outline" },
2522
{ ComponentIcons.CameraStopIcon, "mdi mdi-stop-circle-outline" },
2623
{ ComponentIcons.CameraPhotoIcon, "mdi mdi-camera-outline" },
24+
2725
{ ComponentIcons.CardCollapseIcon, "mdi mdi-chevron-right-circle" },
2826
{ ComponentIcons.CarouselPreviousIcon, "mdi mdi-chevron-left" },
2927
{ ComponentIcons.CarouselNextIcon, "mdi mdi-chevron-right" },
3028
{ ComponentIcons.CascaderIcon, "mdi mdi-chevron-up" },
3129
{ ComponentIcons.CascaderSubMenuIcon, "mdi mdi-chevron-down" },
3230
{ ComponentIcons.ConsoleClearButtonIcon, "mdi mdi-close" },
3331

34-
// DateTimePicker 组件
3532
{ ComponentIcons.DatePickBodyPreviousYearIcon, "mdi mdi-chevron-double-left" },
3633
{ ComponentIcons.DatePickBodyPreviousMonthIcon, "mdi mdi-chevron-left" },
3734
{ ComponentIcons.DatePickBodyNextMonthIcon, "mdi mdi-chevron-right" },
3835
{ ComponentIcons.DatePickBodyNextYearIcon, "mdi mdi-chevron-double-right" },
3936
{ ComponentIcons.DateTimePickerIcon, "mdi mdi-calendar-outline" },
37+
4038
{ ComponentIcons.TimePickerCellUpIcon, "mdi mdi-chevron-up" },
4139
{ ComponentIcons.TimePickerCellDownIcon, "mdi mdi-chevron-down" },
4240

43-
// DateTimeRange 组件
4441
{ ComponentIcons.DateTimeRangeIcon, "mdi mdi-calendar-range-outline" },
4542
{ ComponentIcons.DateTimeRangeClearIcon, "mdi mdi-close-circle-outline" },
4643

@@ -89,6 +86,11 @@ internal static class MaterialDesignIcons
8986
{ ComponentIcons.InputNumberPlusIcon, "mdi mdi-plus-circle-outline" },
9087

9188
{ ComponentIcons.LayoutMenuBarIcon, "mdi mdi-menu" },
89+
{ ComponentIcons.TabContextMenuRefreshIcon, "mdi mdi-refresh" },
90+
{ ComponentIcons.TabContextMenuCloseIcon, "mdi mdi-close" },
91+
{ ComponentIcons.TabContextMenuCloseOtherIcon, "mdi mdi-menu" },
92+
{ ComponentIcons.TabContextMenuCloseAllIcon, "mdi mdi-arrow-left-right-bold" },
93+
9294
{ ComponentIcons.LogoutLinkIcon, "mdi mdi-logout" },
9395

9496
{ ComponentIcons.LoadingIcon, "mdi mdi-loading mdi-spin" },

0 commit comments

Comments
 (0)