Skip to content

Commit

Permalink
Add an icon to RNTA on windows (#2003)
Browse files Browse the repository at this point in the history
* fix: Replace placeholder icon/splashscreen images in windows app

* Reduce image size

* minor lint fix in README

* Remove icon from readme for now.

* fix

* revert README

* fix

* fix

* fix

* cleanup the icon

* Restore transparency

* Include assets in the project files

* compressed image
  • Loading branch information
acoates-ms committed May 8, 2024
1 parent 83a19bd commit e4a9b7d
Show file tree
Hide file tree
Showing 59 changed files with 74 additions and 28 deletions.
Binary file added images/RNTA_full.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/RNTA_small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/header.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 36 additions & 6 deletions test/pack.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,27 @@ describe("npm pack", () => {
"windows/UWP/App.h",
"windows/UWP/App.idl",
"windows/UWP/App.xaml",
"windows/UWP/Assets/LockScreenLogo.scale-200.png",
"windows/UWP/Assets/SplashScreen.scale-100.png",
"windows/UWP/Assets/SplashScreen.scale-200.png",
"windows/UWP/Assets/SplashScreen.scale-400.png",
"windows/UWP/Assets/Square150x150Logo.scale-100.png",
"windows/UWP/Assets/Square150x150Logo.scale-200.png",
"windows/UWP/Assets/Square150x150Logo.scale-400.png",
"windows/UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png",
"windows/UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png",
"windows/UWP/Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png",
"windows/UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png",
"windows/UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png",
"windows/UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png",
"windows/UWP/Assets/Square44x44Logo.scale-100.png",
"windows/UWP/Assets/Square44x44Logo.scale-200.png",
"windows/UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png",
"windows/UWP/Assets/StoreLogo.png",
"windows/UWP/Assets/Square44x44Logo.scale-400.png",
"windows/UWP/Assets/Square44x44Logo.targetsize-16.png",
"windows/UWP/Assets/Square44x44Logo.targetsize-256.png",
"windows/UWP/Assets/Square44x44Logo.targetsize-48.png",
"windows/UWP/Assets/StoreLogo.scale-100.png",
"windows/UWP/Assets/StoreLogo.scale-200.png",
"windows/UWP/Assets/StoreLogo.scale-400.png",
"windows/UWP/Assets/Wide310x150Logo.scale-200.png",
"windows/UWP/AutolinkedNativeModules.g.cpp",
"windows/UWP/AutolinkedNativeModules.g.h",
Expand All @@ -257,12 +272,27 @@ describe("npm pack", () => {
"windows/UWP/pch.h",
"windows/Win32/AutolinkedNativeModules.g.cpp",
"windows/Win32/AutolinkedNativeModules.g.h",
"windows/Win32/Images/LockScreenLogo.scale-200.png",
"windows/Win32/Images/SplashScreen.scale-100.png",
"windows/Win32/Images/SplashScreen.scale-200.png",
"windows/Win32/Images/SplashScreen.scale-400.png",
"windows/Win32/Images/Square150x150Logo.scale-100.png",
"windows/Win32/Images/Square150x150Logo.scale-200.png",
"windows/Win32/Images/Square150x150Logo.scale-400.png",
"windows/Win32/Images/Square44x44Logo.altform-lightunplated_targetsize-16.png",
"windows/Win32/Images/Square44x44Logo.altform-lightunplated_targetsize-256.png",
"windows/Win32/Images/Square44x44Logo.altform-lightunplated_targetsize-48.png",
"windows/Win32/Images/Square44x44Logo.altform-unplated_targetsize-16.png",
"windows/Win32/Images/Square44x44Logo.altform-unplated_targetsize-256.png",
"windows/Win32/Images/Square44x44Logo.altform-unplated_targetsize-48.png",
"windows/Win32/Images/Square44x44Logo.scale-100.png",
"windows/Win32/Images/Square44x44Logo.scale-200.png",
"windows/Win32/Images/Square44x44Logo.targetsize-24_altform-unplated.png",
"windows/Win32/Images/StoreLogo.png",
"windows/Win32/Images/Square44x44Logo.scale-400.png",
"windows/Win32/Images/Square44x44Logo.targetsize-16.png",
"windows/Win32/Images/Square44x44Logo.targetsize-256.png",
"windows/Win32/Images/Square44x44Logo.targetsize-48.png",
"windows/Win32/Images/StoreLogo.scale-100.png",
"windows/Win32/Images/StoreLogo.scale-200.png",
"windows/Win32/Images/StoreLogo.scale-400.png",
"windows/Win32/Images/Wide310x150Logo.scale-200.png",
"windows/Win32/Main.cpp",
"windows/Win32/Main.h",
Expand Down
Binary file removed windows/UWP/Assets/LockScreenLogo.scale-200.png
Binary file not shown.
Binary file added windows/UWP/Assets/SplashScreen.scale-100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified windows/UWP/Assets/SplashScreen.scale-200.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added windows/UWP/Assets/SplashScreen.scale-400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified windows/UWP/Assets/Square150x150Logo.scale-200.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added windows/UWP/Assets/Square44x44Logo.scale-100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified windows/UWP/Assets/Square44x44Logo.scale-200.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added windows/UWP/Assets/Square44x44Logo.scale-400.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added windows/UWP/Assets/Square44x44Logo.targetsize-16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed windows/UWP/Assets/StoreLogo.png
Binary file not shown.
Binary file added windows/UWP/Assets/StoreLogo.scale-100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added windows/UWP/Assets/StoreLogo.scale-200.png
Binary file added windows/UWP/Assets/StoreLogo.scale-400.png
Binary file modified windows/UWP/Assets/Wide310x150Logo.scale-200.png
4 changes: 2 additions & 2 deletions windows/UWP/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
Expand Down Expand Up @@ -27,7 +27,7 @@
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
<uap:SplashScreen BackgroundColor="#151021" Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
Expand Down
19 changes: 16 additions & 3 deletions windows/UWP/ReactTestApp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,25 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Image Include="Assets\LockScreenLogo.scale-200.png" />
<Image Include="Assets\SplashScreen.scale-200.png" />
<Image Include="Assets\Square150x150Logo.scale-100.png" />
<Image Include="Assets\Square150x150Logo.scale-200.png" />
<Image Include="Assets\Square150x150Logo.scale-400.png" />
<Image Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-16.png" />
<Image Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-256.png" />
<Image Include="Assets\Square44x44Logo.altform-lightunplated_targetsize-48.png" />
<Image Include="Assets\Square44x44Logo.altform-unplated_targetsize-16.png" />
<Image Include="Assets\Square44x44Logo.altform-unplated_targetsize-256.png" />
<Image Include="Assets\Square44x44Logo.altform-unplated_targetsize-48.png" />
<Image Include="Assets\Square44x44Logo.scale-100.png" />
<Image Include="Assets\Square44x44Logo.scale-200.png" />
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Image Include="Assets\StoreLogo.png" />
<Image Include="Assets\Square44x44Logo.scale-400.png" />
<Image Include="Assets\Square44x44Logo.targetsize-16.png" />
<Image Include="Assets\Square44x44Logo.targetsize-256.png" />
<Image Include="Assets\Square44x44Logo.targetsize-48.png" />
<Image Include="Assets\StoreLogo.scale-100.png" />
<Image Include="Assets\StoreLogo.scale-200.png" />
<Image Include="Assets\StoreLogo.scale-400.png" />
<Image Include="Assets\Wide310x150Logo.scale-200.png" />
<!-- ReactTestApp asset items -->
</ItemGroup>
Expand Down
9 changes: 0 additions & 9 deletions windows/UWP/ReactTestApp.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,9 @@
<Image Include="Assets\SplashScreen.scale-200.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Square150x150Logo.scale-200.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Square44x44Logo.scale-200.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\StoreLogo.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Wide310x150Logo.scale-200.png">
<Filter>Assets</Filter>
</Image>
Expand Down
Binary file removed windows/Win32/Images/LockScreenLogo.scale-200.png
Diff not rendered.
Binary file added windows/Win32/Images/SplashScreen.scale-100.png
Binary file modified windows/Win32/Images/SplashScreen.scale-200.png
Binary file added windows/Win32/Images/SplashScreen.scale-400.png
Binary file modified windows/Win32/Images/Square150x150Logo.scale-200.png
Binary file modified windows/Win32/Images/Square44x44Logo.scale-200.png
Diff not rendered.
Binary file removed windows/Win32/Images/StoreLogo.png
Diff not rendered.
Binary file added windows/Win32/Images/StoreLogo.scale-100.png
Binary file added windows/Win32/Images/StoreLogo.scale-200.png
Binary file added windows/Win32/Images/StoreLogo.scale-400.png
Binary file modified windows/Win32/Images/Wide310x150Logo.scale-200.png
1 change: 0 additions & 1 deletion windows/Win32/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
DisplayName="ReactApp"
Description="React Native app"
BackgroundColor="transparent"
Square150x150Logo="Images\Square150x150Logo.png"
Square44x44Logo="Images\Square44x44Logo.png"
>
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" />
Expand Down
27 changes: 20 additions & 7 deletions windows/Win32/ReactApp.Package.wapproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,26 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="Images\SplashScreen.scale-200.png" />
<Content Include="Images\LockScreenLogo.scale-200.png" />
<Content Include="Images\Square150x150Logo.scale-200.png" />
<Content Include="Images\Square44x44Logo.scale-200.png" />
<Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Images\StoreLogo.png" />
<Content Include="Images\Wide310x150Logo.scale-200.png" />
<Image Include="Images\SplashScreen.scale-200.png" />
<Image Include="Images\Square150x150Logo.scale-100.png" />
<Image Include="Images\Square150x150Logo.scale-200.png" />
<Image Include="Images\Square150x150Logo.scale-400.png" />
<Image Include="Images\Square44x44Logo.altform-lightunplated_targetsize-16.png" />
<Image Include="Images\Square44x44Logo.altform-lightunplated_targetsize-256.png" />
<Image Include="Images\Square44x44Logo.altform-lightunplated_targetsize-48.png" />
<Image Include="Images\Square44x44Logo.altform-unplated_targetsize-16.png" />
<Image Include="Images\Square44x44Logo.altform-unplated_targetsize-256.png" />
<Image Include="Images\Square44x44Logo.altform-unplated_targetsize-48.png" />
<Image Include="Images\Square44x44Logo.scale-100.png" />
<Image Include="Images\Square44x44Logo.scale-200.png" />
<Image Include="Images\Square44x44Logo.scale-400.png" />
<Image Include="Images\Square44x44Logo.targetsize-16.png" />
<Image Include="Images\Square44x44Logo.targetsize-256.png" />
<Image Include="Images\Square44x44Logo.targetsize-48.png" />
<Image Include="Images\StoreLogo.scale-100.png" />
<Image Include="Images\StoreLogo.scale-200.png" />
<Image Include="Images\StoreLogo.scale-400.png" />
<Image Include="Images\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="ReactApp.vcxproj">
Expand Down

0 comments on commit e4a9b7d

Please sign in to comment.