Skip to content

Commit

Permalink
Fix up icons and splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Jan 16, 2025
1 parent 1570a3f commit 172874d
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 140 deletions.
18 changes: 15 additions & 3 deletions backend/FwLite/FwLiteMaui/FwLiteMaui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,26 @@
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>

<PropertyGroup>
<TargetPlatform>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatform>
</PropertyGroup>

<ItemGroup>
<!-- App Icon -->
<!-- background color is required for mac per: https://learn.microsoft.com/en-us/dotnet/maui/user-interface/images/app-icons?view=net-maui-8.0&tabs=windows#recolor-the-background -->
<MauiIcon Include="Resources\AppIcon\logo_light.svg" Color="#1c4e80" />
<!-- background color is required for mac per: https://learn.microsoft.com/en-us/dotnet/maui/user-interface/images/app-icons?view=net-maui-8.0&tabs=windows#recolor-the-background -->
<MauiIcon Condition="'$(TargetPlatform)' == 'ios' Or '$(TargetPlatform)' == 'maccatalyst'"
Include="Resources\AppIcon\logo_light.svg"
Color="#1c4e80" />

<MauiIcon Condition="'$(TargetPlatform)' == 'android'"
Include="Resources\AppIcon\logo_background.svg"
ForegroundFile="Resources\AppIcon\logo_light_padding.svg"
ForegroundScale="0.8" />

<MauiIcon Include="Resources\AppIcon\logo_light.svg" />

<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#152747" BaseSize="512,512" />
<MauiSplashScreen Include="Resources\AppIcon\logo_light_padding.svg" Color="#1c4e80" BaseSize="512,512" />

<!-- Images -->
<MauiImage Include="Resources\Images\*" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- the app icon is kinda magic here, see https://learn.microsoft.com/en-us/dotnet/maui/user-interface/images/app-icons?view=net-maui-9.0&tabs=android-->
<application android:allowBackup="true" android:icon="@mipmap/logo_light" android:roundIcon="@mipmap/logo_light_round" android:supportsRtl="true"></application>
<application android:allowBackup="true" android:icon="@mipmap/logo_background" android:roundIcon="@mipmap/logo_background_round" android:supportsRtl="true"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion backend/FwLite/FwLiteMaui/Resources/AppIcon/logo_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 172874d

Please sign in to comment.