Skip to content

Commit f09b3e2

Browse files
niels9001Niels Lauteenricogior
authored
[Run] Add Fluent icon for PT Run (microsoft#9962)
* Add run ico * Updated ico * Add icon as resource and also as asset Co-authored-by: Niels Laute <[email protected]> Co-authored-by: Enrico Giordani <[email protected]>
1 parent 11c622a commit f09b3e2

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

installer/PowerToysSetup/Product.wxs

+2-2
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@
923923
<!-- Toast Notification AUMID -->
924924
<RegistryKey Root="HKCU" Key="SOFTWARE\Classes\AppUserModelId\PowerToysRun">
925925
<RegistryValue Type="string" Name="DisplayName" Value="PowerToys Run" />
926-
<RegistryValue Type="string" Name="IconUri" Value="[LauncherImagesFolder]icon.ico" />
926+
<RegistryValue Type="string" Name="IconUri" Value="[LauncherImagesFolder]RunAsset.ico" />
927927
</RegistryKey>
928928

929929
<File Source="$(var.BinX64Dir)modules\Launcher\Microsoft.Launcher.dll" />
@@ -937,7 +937,7 @@
937937
<?endforeach?>
938938
</Component>
939939
<Component Id="launcherImagesComponent" Directory="LauncherImagesFolder" Guid="D254220C-1DD9-4C74-8810-1AAB2F940DE8">
940-
<?foreach File in app.dark.png;app.light.png;app_error.dark.png;app_error.light.png;Browser.png;calculator.png;cancel.png;close.png;cmd.png;color.png;copy.png;down.png;EXE.png;file.png;find.png;folder.png;history.png;image.png;Link.png;lock.png;logoff.png;ok.png;open.png;plugin.png;recyclebin.png;restart.png;search.png;settings.png;shutdown.png;sleep.png;up.png;update.png;warning.png;icon.ico?>
940+
<?foreach File in app.dark.png;app.light.png;app_error.dark.png;app_error.light.png;Browser.png;calculator.png;cancel.png;close.png;cmd.png;color.png;copy.png;down.png;EXE.png;file.png;find.png;folder.png;history.png;image.png;Link.png;lock.png;logoff.png;ok.png;open.png;plugin.png;recyclebin.png;restart.png;search.png;settings.png;shutdown.png;sleep.png;up.png;update.png;warning.png;RunAsset.ico?>
941941
<File Id="File_$(var.File)" Source="$(var.BinX64Dir)modules\launcher\Images\$(var.File)" />
942942
<?endforeach?>
943943
<File Source="$(var.BinX64Dir)modules\launcher\Images\New Message.png" />
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/modules/launcher/PowerLauncher/PowerLauncher.csproj

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
22
<Import Project="..\..\..\Version.props" />
33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<UseWPF>true</UseWPF>
77
<UseWindowsForms>true</UseWindowsForms>
88
<StartupObject>PowerLauncher.App</StartupObject>
9-
<ApplicationIcon>Resources\placeholderLauncher.ico</ApplicationIcon>
9+
<ApplicationIcon>Images\RunResource.ico</ApplicationIcon>
1010
<ApplicationManifest>app.manifest</ApplicationManifest>
1111
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
1212
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
@@ -63,6 +63,7 @@
6363
<None Remove="Images\app.light1.png" />
6464
<None Remove="Images\app_error.dark.png" />
6565
<None Remove="Images\app_error.light.png" />
66+
<None Remove="Images\RunResource.ico" />
6667
</ItemGroup>
6768

6869
<ItemGroup>
@@ -171,9 +172,6 @@
171172
<None Update="Images\history.png">
172173
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
173174
</None>
174-
<None Update="Images\icon.ico">
175-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
176-
</None>
177175
<None Update="Images\image.png">
178176
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
179177
</None>
@@ -204,6 +202,9 @@
204202
<None Update="Images\restart.png">
205203
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
206204
</None>
205+
<None Update="Images\RunAsset.ico">
206+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
207+
</None>
207208
<None Update="Images\search.png">
208209
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
209210
</None>
@@ -266,14 +267,14 @@
266267
<PrivateAssets>all</PrivateAssets>
267268
</PackageReference>
268269
</ItemGroup>
270+
<ItemGroup>
271+
<Resource Include="Images\RunResource.ico" />
272+
</ItemGroup>
269273
<ItemGroup>
270274
<Compile Update="Properties\Resources.Designer.cs">
271275
<DesignTime>True</DesignTime>
272276
<AutoGen>True</AutoGen>
273277
<DependentUpon>Resources.resx</DependentUpon>
274278
</Compile>
275279
</ItemGroup>
276-
<ItemGroup>
277-
<Folder Include="Resources\" />
278-
</ItemGroup>
279280
</Project>
Binary file not shown.

0 commit comments

Comments
 (0)