Skip to content

Commit 69c2e9c

Browse files
authored
[CmdPal] Adding colored extension icons (#38085)
* Updating run icon * Bookmark * System * WindowWalker * Extensions * CreateExtensions * Services * Replacing icon This PR updates the Segoe Fluent icons with colored Fluent icons. ![image](https://github.com/user-attachments/assets/8c1350a1-963b-4deb-9029-966ba0a3c0fb)
1 parent df3e341 commit 69c2e9c

36 files changed

+277
-20
lines changed

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.Bookmark/AddBookmarkPage.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public AddBookmarkPage(BookmarkData? bookmark)
2525
{
2626
var name = bookmark?.Name ?? string.Empty;
2727
var url = bookmark?.Bookmark ?? string.Empty;
28-
Icon = new IconInfo("\ued0e");
28+
Icon = IconHelpers.FromRelativePath("Assets\\Bookmark.svg");
2929
var isAdd = string.IsNullOrEmpty(name) && string.IsNullOrEmpty(url);
3030
Title = isAdd ? Resources.bookmarks_add_title : Resources.bookmarks_edit_name;
3131
Name = isAdd ? Resources.bookmarks_add_name : Resources.bookmarks_edit_name;
Loading
Loading

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.Bookmark/Microsoft.CmdPal.Ext.Bookmarks.csproj

+12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<!-- MRT from windows app sdk will search for a pri file with the same name of the module before defaulting to resources.pri -->
1010
<ProjectPriFileName>Microsoft.CmdPal.Ext.Bookmarks.pri</ProjectPriFileName>
1111
</PropertyGroup>
12+
<ItemGroup>
13+
<None Remove="Assets\Bookmark.svg" />
14+
</ItemGroup>
1215
<ItemGroup>
1316
<ProjectReference Include="..\..\extensionsdk\Microsoft.CommandPalette.Extensions.Toolkit\Microsoft.CommandPalette.Extensions.Toolkit.csproj" />
1417
<ProjectReference Include="..\..\Exts\Microsoft.CmdPal.Ext.Indexer\Microsoft.CmdPal.Ext.Indexer.csproj" />
@@ -21,6 +24,15 @@
2124
<AutoGen>True</AutoGen>
2225
</Compile>
2326
</ItemGroup>
27+
28+
<ItemGroup>
29+
<Content Update="Assets\Bookmark.png">
30+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
31+
</Content>
32+
<Content Update="Assets\Bookmark.svg">
33+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
34+
</Content>
35+
</ItemGroup>
2436
<ItemGroup>
2537
<EmbeddedResource Update="Properties\Resources.resx">
2638
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
Loading
Loading

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.Shell/Microsoft.CmdPal.Ext.Shell.csproj

+11-9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
88
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
99
</PropertyGroup>
10+
<ItemGroup>
11+
<None Remove="Assets\Run.svg" />
12+
</ItemGroup>
1013
<ItemGroup>
1114
<ProjectReference Include="..\..\extensionsdk\Microsoft.CommandPalette.Extensions.Toolkit\Microsoft.CommandPalette.Extensions.Toolkit.csproj" />
1215
</ItemGroup>
@@ -17,19 +20,18 @@
1720
<AutoGen>True</AutoGen>
1821
</Compile>
1922
</ItemGroup>
23+
<ItemGroup>
24+
<Content Update="Assets\Run.png">
25+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
26+
</Content>
27+
<Content Update="Assets\Run.svg">
28+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
29+
</Content>
30+
</ItemGroup>
2031
<ItemGroup>
2132
<EmbeddedResource Update="Properties\Resources.resx">
2233
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
2334
<Generator>PublicResXFileCodeGenerator</Generator>
2435
</EmbeddedResource>
2536
</ItemGroup>
26-
27-
<ItemGroup>
28-
<None Remove="Assets\Run_V2_2x.svg" />
29-
</ItemGroup>
30-
<ItemGroup>
31-
<Content Update="Assets\Run_V2_2x.svg">
32-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
33-
</Content>
34-
</ItemGroup>
3537
</Project>
Loading
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.System/Helpers/Icons.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ namespace Microsoft.CmdPal.Ext.System.Helpers;
88

99
public static partial class Icons
1010
{
11-
public static IconInfo FirmwareSettingsIcon { get; } = IconHelpers.FromRelativePaths("Microsoft.CmdPal.Ext.System\\Assets\\logoff.light.png", "Microsoft.CmdPal.Ext.System\\Assets\\logoff.dark.png");
11+
public static IconInfo FirmwareSettingsIcon { get; } = new IconInfo("\uE950");
1212

1313
public static IconInfo LockIcon { get; } = new IconInfo("\uE72E");
1414

15-
public static IconInfo LogoffIcon { get; } = IconHelpers.FromRelativePaths("Microsoft.CmdPal.Ext.System\\Assets\\logoff.light.png", "Microsoft.CmdPal.Ext.System\\Assets\\logoff.dark.png");
15+
public static IconInfo LogoffIcon { get; } = new IconInfo("\uF3B1");
1616

1717
public static IconInfo NetworkAdapterIcon { get; } = new IconInfo("\uEDA3");
1818

@@ -22,5 +22,5 @@ public static partial class Icons
2222

2323
public static IconInfo ShutdownIcon { get; } = new IconInfo("\uE7E8");
2424

25-
public static IconInfo SleepIcon { get; } = IconHelpers.FromRelativePaths("Microsoft.CmdPal.Ext.System\\Assets\\sleep.light.png", "Microsoft.CmdPal.Ext.System\\Assets\\sleep.dark.png");
25+
public static IconInfo SleepIcon { get; } = new IconInfo("\uE708");
2626
}

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.System/Microsoft.CmdPal.Ext.System.csproj

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
<AutoGen>True</AutoGen>
1818
</Compile>
1919
</ItemGroup>
20+
<ItemGroup>
21+
<Content Update="Assets\SystemCommand.png">
22+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23+
</Content>
24+
<Content Update="Assets\SystemCommand.svg">
25+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
26+
</Content>
27+
</ItemGroup>
2028
<ItemGroup>
2129
<EmbeddedResource Update="Properties\Resources.resx">
2230
<LastGenOutput>Resources.Designer.cs</LastGenOutput>

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.System/Pages/SystemCommandPage.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public sealed partial class SystemCommandPage : ListPage
1515
public SystemCommandPage(SettingsManager settingsManager)
1616
{
1717
Title = Resources.Microsoft_plugin_ext_system_page_name;
18-
Icon = new IconInfo("\uE72E");
18+
Icon = IconHelpers.FromRelativePath("Assets\\SystemCommand.svg");
1919
_settingsManager = settingsManager;
2020
ShowDetails = true;
2121
}
Loading
Loading
Loading
Loading

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowWalker/Microsoft.CmdPal.Ext.WindowWalker.csproj

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
88
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
99
</PropertyGroup>
10+
<ItemGroup>
11+
<None Remove="Assets\WindowWalker.svg" />
12+
</ItemGroup>
1013
<ItemGroup>
1114
<ProjectReference Include="..\..\extensionsdk\Microsoft.CommandPalette.Extensions.Toolkit\Microsoft.CommandPalette.Extensions.Toolkit.csproj" />
1215
</ItemGroup>
@@ -17,6 +20,14 @@
1720
<AutoGen>True</AutoGen>
1821
</Compile>
1922
</ItemGroup>
23+
<ItemGroup>
24+
<Content Update="Assets\WindowWalker.png">
25+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
26+
</Content>
27+
<Content Update="Assets\WindowWalker.svg">
28+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
29+
</Content>
30+
</ItemGroup>
2031
<ItemGroup>
2132
<EmbeddedResource Update="Properties\Resources.resx">
2233
<LastGenOutput>Resources.Designer.cs</LastGenOutput>

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowWalker/Pages/WindowWalkerListPage.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal sealed partial class WindowWalkerListPage : DynamicListPage, IDisposabl
1919

2020
public WindowWalkerListPage()
2121
{
22-
Icon = new IconInfo("\ue8f9"); // SwitchApps
22+
Icon = IconHelpers.FromRelativePath("Assets\\WindowWalker.svg");
2323
Name = Resources.windowwalker_name;
2424
Id = "com.microsoft.cmdpal.windowwalker";
2525
PlaceholderText = Resources.windowwalker_PlaceholderText;

src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.WindowWalker/WindowWalkerCommandsProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public WindowWalkerCommandsProvider()
2020
{
2121
Id = "WindowWalker";
2222
DisplayName = Resources.windowwalker_name;
23-
Icon = new IconInfo("\ue8f9"); // SwitchApps
23+
Icon = IconHelpers.FromRelativePath("Assets\\WindowWalker.svg");
2424
Settings = SettingsManager.Instance.Settings;
2525

2626
_windowWalkerPageItem = new CommandItem(new WindowWalkerListPage())
Loading

0 commit comments

Comments
 (0)