Repository navigation
Description
Looked at while migrating to .NET 11 (#168) on 2026-11-11, against Microsoft.Maui.Controls 11.0.10. The epic listed these as "small Android items, if trivial"; none turned out to be a one-line change, so they are here instead.
1. The launcher icon has no themed variant
src/AniSprinkles/AniSprinkles.csproj:33:
<MauiIcon Include="Resources\AppIcon\appicon.png" />One flat PNG, and Resources/AppIcon/ holds nothing else. Android's themed icons (the tinted single-colour icons on a Material You home screen) need a monochrome layer, and MAUI 11's Resizetizer only passes MonochromeFile through when ForegroundFile is set as well (Microsoft.Maui.Resizetizer.After.targets:270-271 in the 11.0.10 package):
<MauiItem Include="@(MauiIcon)" … Condition="'%(MauiIcon.ForegroundFile)' != '' and '%(MauiIcon.MonochromeFile)' != ''" … />So this is artwork before it is a build setting: the icon has to be split into a background and a foreground, and a single-colour version of the foreground drawn.
2. The splash screen has one image and one colour
src/AniSprinkles/AniSprinkles.csproj:36:
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#17171a" BaseSize="128,128" />MAUI 11 adds DarkFile for a second, dark-mode splash image (Microsoft.Maui.Resizetizer.After.targets:274-275). The existing splash is already dark, and the app forces the dark theme (src/AniSprinkles/App.xaml.cs:12, UserAppTheme = AppTheme.Dark), so there is nothing for DarkFile to switch to today. It only becomes relevant if we want the splash to differ between a light-mode and a dark-mode phone. How the current splash looks on a phone in light mode was not checked on device.
3. MauiAndroidSystemBarsUseMauiChrome has not been evaluated
The property sets the runtime switch Microsoft.Maui.RuntimeFeature.UseMauiAndroidSystemBarBackgrounds (Microsoft.Maui.Controls.targets:390-393 in the 11.0.10 package). Nothing in the repo sets it.
The app colours its system bars itself in src/AniSprinkles/Platforms/Android/MainActivity.cs: transparent status and navigation bars at lines 79-80, and AppearanceLightStatusBars = false at line 289. The two colour calls are obsolete on current Android and sit inside a #pragma warning disable CA1422 (lines 78-81) — the kind of suppression the repo otherwise avoids.
Not known: the switch's default, what it draws when on, and whether it would replace that MainActivity code or fight with it. Nothing was built or run with it.
Options
Not settled; each item stands alone.
- Themed icon: do it once the artwork exists, or decide the flat icon is fine.
- Splash: leave as is, or add a light-mode variant.
- System bars: try the switch on an emulator and compare screenshots against today's bars. If it does what
MainActivitydoes by hand, the hand-written code can go.
Constraint
- Edge-to-edge popups depend on the current bar handling (
ActionMenuPopup.xaml.cs,MoveToListPopup.xaml.cssetSafeAreaEdgesby hand). A change to system-bar handling has to re-check those on device.
Related
- .NET 11 removes Mono: the retarget, with the Release gate, MTP, XAML source generation and build hygiene #168 — the .NET 11 migration.
- Material 3 is one property away and we have never seen what it does to the app #172 — Material 3, judged by screenshot diff; the system-bar switch would be judged the same way.
Activity