Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up icons and splash screen #1387

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions backend/FwLite/FwLiteMaui/FwLiteMaui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,27 @@
<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 Condition="'$(TargetPlatform)' != 'ios' And '$(TargetPlatform)' != 'maccatalyst' And '$(TargetPlatform)' != 'android'"
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
Loading