Skip to content

Commit 8f80f8e

Browse files
committed
refactor: refactor Icons.cs to use property initializers (#89)
1 parent caa0b03 commit 8f80f8e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • CmdPalWebSearchShortcut/WebSearchShortcut/Properties

CmdPalWebSearchShortcut/WebSearchShortcut/Properties/Icons.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,40 @@ internal static class Icons
1414
/// <summary>
1515
/// Extension logo icon
1616
/// </summary>
17-
public static IconInfo Logo => IconHelpers.FromRelativePath("Assets\\Search.png");
17+
public static IconInfo Logo { get; } = IconHelpers.FromRelativePath("Assets\\Search.png");
1818

1919
/// <summary>
2020
/// "Add Shortcut" icon
2121
/// </summary>
22-
public static IconInfo AddShortcut => IconHelpers.FromRelativePath("Assets\\SearchAdd.png");
22+
public static IconInfo AddShortcut { get; } = IconHelpers.FromRelativePath("Assets\\SearchAdd.png");
2323

2424
/// <summary>
2525
/// "Edit Shortcut" icon
2626
/// </summary>
27-
public static IconInfo EditShortcut => new("\uE70F");
27+
public static IconInfo EditShortcut { get; } = new("\uE70F");
2828

2929
/// <summary>
3030
/// Default fallback icon for links
3131
/// </summary>
32-
public static IconInfo Link => new("🔗");
32+
public static IconInfo Link { get; } = new("🔗");
3333

3434
/// <summary>
3535
/// Edit icon (pencil)
3636
/// </summary>
37-
public static IconInfo Edit => new("\uE70F");
37+
public static IconInfo Edit { get; } = new("\uE70F");
3838

3939
/// <summary>
4040
/// Delete icon (trash can)
4141
/// </summary>
42-
public static IconInfo Delete => new("\uE74D");
42+
public static IconInfo Delete { get; } = new("\uE74D");
4343

4444
/// <summary>
4545
/// Homepage icon
4646
/// </summary>
47-
public static IconInfo Home => new("\uE80F");
47+
public static IconInfo Home { get; } = new("\uE80F");
4848

4949
/// <summary>
5050
/// Search icon
5151
/// </summary>
52-
public static IconInfo Search => new("\uE721");
52+
public static IconInfo Search { get; } = new("\uE721");
5353
}

0 commit comments

Comments
 (0)