Skip to content

Commit 226d750

Browse files
[templates] use .NET logo on app icons (#7065)
Fixes: #7041 I got these image files by doing: dotnet new maui dotnet build -f net6.0-android Then look in `obj\Debug\net6.0-android\resizetizer\r`. The `maui` template uses an `.svg` and generates these files at build time. Since we don't have Resizetizer here, we can just add the build output instead. I used the exact filenames that dotnet/maui uses, I don't think we were particular about the `ic_launcher` named used before? ![image](https://user-images.githubusercontent.com/840039/171743063-eaaba8aa-d72b-47e7-98f5-ce30e18ea5d0.png)
1 parent b002dc3 commit 226d750

35 files changed

+9
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3-
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true">
3+
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:label="@string/app_name" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true">
44
</application>
55
<uses-permission android:name="android.permission.INTERNET" />
66
</manifest>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
2+
<background android:drawable="@mipmap/appicon_background" />
3+
<foreground android:drawable="@mipmap/appicon_foreground" />
4+
</adaptive-icon>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
2+
<background android:drawable="@mipmap/appicon_background" />
3+
<foreground android:drawable="@mipmap/appicon_foreground" />
4+
</adaptive-icon>

src/Microsoft.Android.Templates/android/Resources/mipmap-anydpi-v26/ic_launcher.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/Microsoft.Android.Templates/android/Resources/mipmap-anydpi-v26/ic_launcher_round.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.
688 Bytes
Loading
97 Bytes
Loading
1.25 KB
Loading
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)