Try to make icon nicer.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 76 KiB |
@@ -9,6 +9,7 @@ namespace Progrart.Android;
|
|||||||
Label = "Progrart.Android",
|
Label = "Progrart.Android",
|
||||||
Theme = "@style/MyTheme.NoActionBar",
|
Theme = "@style/MyTheme.NoActionBar",
|
||||||
Icon = "@drawable/icon",
|
Icon = "@drawable/icon",
|
||||||
|
RoundIcon = "@drawable/app_icon",
|
||||||
MainLauncher = true,
|
MainLauncher = true,
|
||||||
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)]
|
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)]
|
||||||
public class MainActivity : AvaloniaMainActivity<App>
|
public class MainActivity : AvaloniaMainActivity<App>
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net10.0-android</TargetFramework>
|
<TargetFramework>net10.0-android</TargetFramework>
|
||||||
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
|
<SupportedOSPlatformVersion>26</SupportedOSPlatformVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ApplicationId>com.CompanyName.Progrart</ApplicationId>
|
<ApplicationId>io.creeperlv.Progrart</ApplicationId>
|
||||||
<ApplicationVersion>1</ApplicationVersion>
|
<ApplicationVersion>1</ApplicationVersion>
|
||||||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
||||||
<AndroidPackageFormat>apk</AndroidPackageFormat>
|
<AndroidPackageFormat>apk</AndroidPackageFormat>
|
||||||
@@ -12,9 +12,15 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AndroidResource Include="Icon.png">
|
<AndroidResource Include="icon.png">
|
||||||
<Link>Resources\drawable\Icon.png</Link>
|
<Link>Resources\drawable\icon.png</Link>
|
||||||
</AndroidResource>
|
</AndroidResource>
|
||||||
|
<AndroidResource Include="icon_fg.png">
|
||||||
|
<Link>Resources\drawable\icon_fg.png</Link>
|
||||||
|
</AndroidResource>
|
||||||
|
<AndroidResource Include="icon_bg.png">
|
||||||
|
<Link>Resources\drawable\icon_bg.png</Link>
|
||||||
|
</AndroidResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<application android:label="Progrart" android:icon="@drawable/Icon" />
|
<application android:label="Progrart" android:icon="@drawable/icon" android:roundIcon="@drawable/app_icon" />
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
5
Progrart.Android/Resources/drawable/app_icon.xml
Normal file
5
Progrart.Android/Resources/drawable/app_icon.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.microsoft.com/apk/res/android">
|
||||||
|
<background android:drawable="@drawable/icon_fg" />
|
||||||
|
<foreground android:drawable="@drawable/icon_bg" />
|
||||||
|
</adaptive-icon>
|
||||||
BIN
Progrart.Android/icon_bg.png
Normal file
BIN
Progrart.Android/icon_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
Progrart.Android/icon_fg.png
Normal file
BIN
Progrart.Android/icon_fg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 287 KiB After Width: | Height: | Size: 381 KiB |
@@ -39,5 +39,7 @@
|
|||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
|
<key>XSAppIconAssets</key>
|
||||||
|
<string>Assets.xcassets/AppIcon.appiconset</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
Reference in New Issue
Block a user