Repository navigation
[Material3] Fix tab selection indicator color on theme change - #38445
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38445Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38445" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hey there @@SyedAbdulAzeemSF4852! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Note 🔍
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Note 🔍
|
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
Tests Failure Analysis
🧪 CI Analysis — click to expand📊 maui-prNo failures found. 🧪 maui-pr-devicetestsNo failures found. 🧪 maui-pr-uitests
🧭 Follow-up — actions and refreshNext action: Inspect or rerun the affected SafeArea, API 30 Controls, and macOS Label shards to resolve the unmatched diagnostics.
|
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 2 findings
See inline comments for details.
| configuration.UiMode = (configuration.UiMode & ~UiMode.NightMask) | (requestedTheme == AppTheme.Dark ? UiMode.NightYes : UiMode.NightNo); | ||
|
|
||
| using var configuredContext = context.CreateConfigurationContext(configuration); | ||
| configuredContext.SetTheme(Resource.Style.Maui_Material3_Theme_NoActionBar); |
There was a problem hiding this comment.
🔍 AI-Generated Review (multi-model)
❌ Error — [major] Native Platform Defaults Preservation GetThemeAttrColor forcibly applies Maui_Material3_Theme_NoActionBar before reading colorSecondaryContainer, which discards app-provided Material3 palette overrides. Concrete scenario: apps that customize colorSecondaryContainer in their Android theme will see the active indicator snap back to MAUI default colors after a theme change instead of preserving their themed value.
| App.Tap("SwitchToDarkThemeButton"); | ||
| App.WaitForElement("Dark theme active"); | ||
|
|
||
| VerifyScreenshot(); |
There was a problem hiding this comment.
🔍 AI-Generated Review (multi-model)
VerifyScreenshot() with no retry window), which can capture pre-redraw frames on Android and produce flaky pass/fail outcomes. Use VerifyScreenshot(retryTimeout: ...) (same issue also applies to Issue38234_TabbedPageTest.cs) so the test waits for the visual state it is validating.
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@SyedAbdulAzeemSF4852 — new AI review results are available based on commit
a643aba.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ❌ FAILED
Platform: ANDROID · Base: main · Merge base: 828569a8
🩺 Fix does not pass the tests — every test still fails after applying the fix. The PR's change does not resolve the failure(s).
| Test | Without Fix (expect FAIL) | With Fix (expect PASS) |
|---|---|---|
🖥️ Issue38234 Issue38234 |
✅ FAIL — 2618s | ❌ FAIL — 1838s |
🖥️ Issue38234_TabbedPageTest Issue38234_TabbedPageTest |
✅ FAIL — 611s | ❌ FAIL — 1789s |
🔴 Without fix — 🖥️ Issue38234: FAIL ✅ · 2618s
Error-relevant lines (filtered from the build log):
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass105_0.<InstallPackage>b__0(Task`1 t) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: --- End of stack trace from previous location --- [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: at AndroidDeviceExtensions.PushAndInstallPackageAsync(AndroidDevice device, PushAndInstallCommand command, CancellationToken token) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: at Xamarin.Android.Tasks.FastDeploy.InstallPackage(Boolean installed) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: at Xamarin.Android.Tasks.FastDeploy.RunInstall() [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
Build FAILED.
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
at Microsoft.Maui.TestCases.Tests.Issues.Issue38234.ShellTabBarSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234.cs:line 24
🟢 With fix — 🖥️ Issue38234: FAIL ❌ · 1838s
Error-relevant lines (filtered from the build log):
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
at Microsoft.Maui.TestCases.Tests.Issues.Issue38234.ShellTabBarSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234.cs:line 24
🔴 Without fix — 🖥️ Issue38234_TabbedPageTest: FAIL ✅ · 611s
Error-relevant lines (filtered from the build log):
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
🟢 With fix — 🖥️ Issue38234_TabbedPageTest: FAIL ❌ · 1789s
Error-relevant lines (filtered from the build log):
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
⚠️ Failure Details
- ❌ Issue38234 FAILED with fix (should pass)
TabbedPageSelectionColorUpdatesAfterThemeChange [6 s]; ShellTabBarSelectionColorUpdatesAfterThemeChange [6 s]VisualTestUtils.VisualTestFailedException : Baseline snapshot not yet created: /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/snapshots/android/TabbedPageSelectionCo...; VisualTestUtils.VisualTestFailedException : Baseline snapshot not yet created: /home/vsts/work...
- ❌ Issue38234_TabbedPageTest FAILED with fix (should pass)
TabbedPageSelectionColorUpdatesAfterThemeChange [6 s]VisualTestUtils.VisualTestFailedException : Baseline snapshot not yet created: /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/snapshots/android/TabbedPageSelectionCo...
📁 Fix files reverted (3 files)
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRenderer.cssrc/Controls/src/Core/Platform/Android/BottomNavigationViewUtils.cssrc/Controls/src/Core/Platform/Android/TabbedPageManager.cs
📋 Pre-Flight — Context & Validation
PR #38445 Pre-Flight
Context
- PR:
[Material3] Fix tab selection indicator color on theme change - Issue: #38234, Android Material 3 Shell TabBar selection color does not update when
AppThemechanges. - Scope: Android only; the issue is reported with
<UseMaterial3>enabled. - Base / head:
main/fix-38234; locally materialized as commit77b8507c7a947a070c5cde80d902092a68c8db2b. - Merge base used by the gate:
828569a86489228dc66a7867173635a6fb4f27be.
Existing PR Approach
The PR treats the stale Material 3 active-indicator tint as an explicit refresh problem:
BottomNavigationViewUtils.UpdateActiveIndicatorColorresolves
colorSecondaryContainerfrom a configuration context forced to
Application.Current.RequestedTheme, then assigns
BottomNavigationView.ItemActiveIndicatorColor.ShellItemRenderer.IAppearanceObserver.OnAppearanceChangedcalls the helper.TabbedPageManagercalls the helper when creating the bottom navigation view,
subscribes toApplication.Current.RequestedThemeChanged, refreshes from that
event, and unsubscribes during teardown.
This approach must not be repeated by an alternative candidate merely at another
call site. Each candidate needs a different root-cause hypothesis and mechanism.
Changed Files
Production files (the complete try-fix modification allow-list):
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRenderer.cssrc/Controls/src/Core/Platform/Android/BottomNavigationViewUtils.cssrc/Controls/src/Core/Platform/Android/TabbedPageManager.cs
The PR also adds two HostApp pages, two Android-only Material3 UI test fixtures,
and two visual snapshots. Those additions are test evidence and are read-only
during try-fix attempts.
Gate Evidence
The already-completed gate failed:
Issue38234failed without and with the PR fix.Issue38234_TabbedPageTestfailed without and with the PR fix.- Both failures with the fix are
VisualTestFailedExceptionreports saying the
baseline snapshot was not found under the runtimesnapshots/android/path. - The committed snapshots are under
src/Controls/tests/TestCases.Android.Tests/snapshots/android-notch-36/.
This snapshot-environment mismatch makes the gate result inconclusive about the
rendered color and may prevent a candidate from earning Pass even if its
product behavior is correct. Do not edit tests or snapshots to work around it;
record an honest Fail or Blocked with the exact evidence if validation cannot
reach a behavioral comparison.
Do not re-run the gate and do not create or overwrite gate/content.md.
Bounded Validation
Platform: android.
Primary test:
pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue38234"Mandatory regression test:
pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue38234_TabbedPageTest"Run only these tests. Treat both commands together as one validation pass. One
focused code correction and one repeat of the affected command(s) is the maximum;
never run a full suite.
Constraints and Prior Evidence
- The regression cross-reference is
CLEAN: no removed line overlaps a recent
labeled bug-fix PR touching these files. - Detected UI category:
Material3. - Follow
.github/instructions/android.instructions.md,
.github/instructions/threading-async.instructions.md, and the activation
guidance in.github/instructions/public-api.instructions.md; this diff does
not intentionally add public API. - Follow the try-fix skill's baseline boundary and restore protocol exactly.
- Perform the expert self-review inline; do not launch any reviewer agent.
🔬 Code Review — Deep Analysis
Expert Evaluation — Raw PR Fix
Verdict: NEEDS_CHANGES
Confidence: low
Independent assessment
The PR addresses the correct Android Material 3 surfaces: Shell refreshes the
active-indicator tint from its appearance callback, while TabbedPageManager
refreshes it during creation and on RequestedThemeChanged. The
TabbedPageManager subscription is paired with teardown in SetElement(null),
and the new platform-view writes occur on the existing UI callback paths.
Actionable findings
- ❌ Preserve the effective application palette.
BottomNavigationViewUtils.GetThemeAttrColorapplies
Maui_Material3_Theme_NoActionBarto a configuration context before resolving
colorSecondaryContainer. That replaces app-provided Material 3 theme
overrides with MAUI's default palette during the refresh. An app that
customizescolorSecondaryContainercan therefore get the correct initial
indicator color but have it snap to a MAUI default after a theme change. ⚠️ Give both visual assertions a bounded retry window.
The Shell and TabbedPage tests callVerifyScreenshot()immediately after
changing the requested theme. Android theme propagation and redraw can lag
the input action, so a no-retry capture can observe the prior frame. Both
tests should use the repository's boundedretryTimeoutoverload.
The raw file-and-line findings are recorded in
../inline-findings.json.
Blast radius and failure modes
- The production change is Android-only but affects every Material 3 Shell
bottom tab and bottom-positionedTabbedPagewhen appearance/theme callbacks
run. - No new static state is introduced.
TabbedPageManagerremoves the application theme subscription before
detaching the old element, preventing ordinary reconnect cycles from
accumulating handlers.- The helper guards null application/context/platform-view inputs and returns
when Material 3 is disabled. - The palette override above is a concrete adjacent-app regression; visual
validation is additionally inconclusive because the completed gate searched
snapshots/android/while the submitted baselines are under
snapshots/android-notch-36/.
Recommended consolidated refinement
Resolve colorSecondaryContainer from a theme context that retains the host
application's effective Material 3 style while applying the requested
day/night configuration, and add a bounded screenshot retry to both tests.
Validate only Issue38234 and Issue38234_TabbedPageTest once in the required
candidate sandbox.
External Output Contract
Not applicable.
🛠️ Try-Fix — Analysis & Comparison
Try-Fix Aggregate
Candidate 1 — Recreate the Native Bottom Navigation Control
Result: Fail
Model: gpt-5.3-codex
Self-review: 0 findings
Detailed record: ../try-fix-1/content.md
Raw artifacts: attempt-1/
Candidate 1 rejected the PR's one-property refresh hypothesis. It treated the
root cause as stale themed internals in an already-instantiated Material
BottomNavigationView and recreated the control after a runtime night/day mode
change. The prototype changed ShellItemRenderer.cs (+60/-0) and
TabbedPageManager.cs (+73/-0), rebuilding menus, selection state, styling, and
listeners after replacing the native view.
Both bounded Android validations executed:
Issue38234reachedVerifyScreenshotfor both Shell and TabbedPage, then
failed because the runtime could not find either image under
snapshots/android/.Issue38234_TabbedPageTestreachedVerifyScreenshot, then failed for the
same missingsnapshots/android/baseline.
The committed baselines are under snapshots/android-notch-36/; therefore the
test runs could not compare rendered output and neither validate nor disprove
the candidate. No correction was attempted because changing snapshot selection
is outside the three-file production allow-list. The captured result is
honestly Fail, not Pass.
The complete implementation diff is embedded in the detailed candidate record
and saved as attempt-1/fix.diff. Inline expert self-review was clean
(reviewer-findings.json is []). Restoration completed with Restored True.
Candidate 2 — Theme-Aware Stateful Indicator Color
Result: Fail
Model: gpt-5.6-sol
Self-review: 0 findings
Detailed record: ../try-fix-2/content.md
Raw artifacts: attempt-2/
Candidate 2 avoided both earlier mechanisms. It did not recompute and replace
ItemActiveIndicatorColor after each theme event, and it did not recreate the
native control. Instead, it assigned one ColorStateList containing precomputed
light and dark Material 3 colorSecondaryContainer values during control
creation, then toggled the retained indicator drawable's activated state after
a theme notification. This tested the hypothesis that the indicator's original
color list lacks a theme-state dimension.
The prototype changed all three allowed production files:
ShellItemRenderer.cs(+2/-0)BottomNavigationViewUtils.cs(+74/-0)TabbedPageManager.cs(+12/-0)
Both bounded Android validations executed:
Issue38234built, deployed, and ran two tests; both reached
VerifyScreenshotand failed because the runtime could not find the
baselines undersnapshots/android/.Issue38234_TabbedPageTestbuilt, deployed, and ran one test; it reached
VerifyScreenshotand failed for the same missing baseline.
The committed baselines remain under snapshots/android-notch-36/; therefore
the test runs could not compare rendered output and neither validate nor
disprove the candidate. No correction was attempted because snapshot selection
is outside the production-file allow-list. The captured result is honestly
Fail, not Pass.
The complete implementation diff is embedded in the detailed candidate record
and saved as attempt-2/fix.diff. The artifact gate passed, inline expert
self-review was clean (reviewer-findings.json is []), and restoration
completed with Restored True.
Aggregate Outcome
Two candidates were attempted, which is the configured maximum. Both exercised
distinct mechanisms and both completed the required Shell plus TabbedPage test
commands. Neither candidate can be recommended as validated because the visual
test environment selected android while the PR supplies only
android-notch-36 snapshots. STEP 5b should treat both as unverified failed
experiments, not as evidence that either mechanism renders the wrong color.
📝 PR Finalize — Recommended Title & Description
Assessment: ✏️ Recommend updating — the current description is strong, but the title lacks the Android platform prefix and the root-cause section describes only TabbedPage even though the submitted fix covers both Shell and TabbedPage.
Recommended title
[Android] Material 3 tabs: Update active indicator color on theme change
Recommended description
### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and bottom-positioned TabbedPage active selection indicators do not update when the application theme changes.
### Root Cause
- Android Material 3 `BottomNavigationView.ItemActiveIndicatorColor` retained the theme-derived color from the native control's creation. The Shell and TabbedPage appearance paths did not refresh that property after an application theme change.
### Description of Change
- Added `BottomNavigationViewUtils.UpdateActiveIndicatorColor` to resolve `colorSecondaryContainer` for `Application.Current.RequestedTheme` and update `BottomNavigationView.ItemActiveIndicatorColor`.
- Integrated `UpdateActiveIndicatorColor` into `ShellItemRenderer` so the Shell TabBar active indicator refreshes when its appearance changes.
- Integrated `UpdateActiveIndicatorColor` into `TabbedPageManager` during bottom-navigation creation and on `Application.Current.RequestedThemeChanged`, with matching subscription cleanup when the element is detached.
- Added Android Material 3 UI coverage and visual snapshots for both the Shell TabBar and TabbedPage theme-change scenarios.
### Issues Fixed
Fixes #38234
### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac
### Output
| Before | After |
|----------|----------|
| <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f"> | <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> |
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winner: pr-plus-reviewer
The reviewer-enhanced PR is the strongest candidate because it keeps the raw
PR's localized refresh mechanism and lifecycle symmetry while fixing the
expert review's concrete palette regression: the requested-configuration
context now inherits the application's effective theme stack instead of
forcing MAUI's default Material 3 theme. It also makes both theme-transition
visual assertions resilient to delayed Android redraws.
Validation constraint
No candidate passed the mandatory regression command. The raw PR gate,
try-fix-1, try-fix-2, and pr-plus-reviewer all built/deployed far enough
to reach VerifyScreenshot, then failed because the runtime selected
snapshots/android/ while the committed baselines are in
snapshots/android-notch-36/. Per the ranking rule, a passing candidate would
outrank every candidate here; none exists. These are recorded as failures, not
as passes or proof of incorrect rendering.
Comparative ranking
| Rank | Candidate | Required validation | Assessment |
|---|---|---|---|
| 1 | pr-plus-reviewer |
Fail: 2/2 Issue38234 tests and 1/1 Issue38234_TabbedPageTest test stopped at missing snapshots/android/ baselines; both builds succeeded with 0 warnings/errors. |
Best implementation. Preserves custom Material 3 palette overrides and adds bounded screenshot retries without broadening the runtime mechanism. |
| 2 | pr |
Gate failed: the same visual-baseline lookup prevented comparison with the fix. | Directionally correct and localized, with symmetric TabbedPageManager subscription cleanup, but forcing Maui_Material3_Theme_NoActionBar can replace an app's customized colorSecondaryContainer; immediate screenshots are also timing-sensitive. |
| 3 | try-fix-1 |
Fail: Shell and TabbedPage filters reached screenshot verification, then hit the same missing baselines. | Recreating each native BottomNavigationView may refresh all themed state, but it is substantially broader than the one-property defect and introduces menu/listener/state restoration and disposal risk. |
| 4 | try-fix-2 |
Fail: Shell and TabbedPage filters reached screenshot verification, then hit the same missing baselines. | Avoids control recreation, but depends on manually driving internal active-indicator view state, precomputes both palettes with the same forced MAUI theme problem, and is more coupled to Material internals than direct property refresh. |
Expert review disposition
- ❌ Resolved in winner: Preserve the effective application Material 3
palette when resolvingcolorSecondaryContainerfor the requested theme. ⚠️ Resolved in winner: Use a bounded screenshot retry for both Shell and
TabbedPage theme transitions.- Remaining uncertainty: The environment-specific snapshot mismatch
prevents behavioral pixel comparison. The trusted gate does not permit
approval, and the submitted PR does not yet contain the winning refinement.
The raw PR therefore needs the pr-plus-reviewer/reviewer.patch changes before
merge, followed by CI in an environment that selects the committed snapshot
variant.
📱 UI Tests — Material3
Detected UI test categories: Material3
❌ Deep UI tests — 11 passed, 29 failed, 3 skipped across 1 category on platform-pool agent (replaces in-process counts above). 365 new snapshot tests need a baseline PNG (added separately by a maintainer — not a regression).
🧪 UI Test Execution Results (deep, platform pool)
| Category | Tests | Snapshot diffs |
|---|---|---|
Material3 |
11/408 (29 ❌, 365 ⚠ new baseline, 3 skipped) | — |
🔍 AI analysis of failures — PR-related vs unrelated
🔍 AI-generated triage (GitHub Copilot CLI) — a heuristic judgement of whether each deep UI test failure is connected to this PR's changes. Verify before relying on it.
Likely unrelated: the failures appear pre-existing, flaky, or infrastructure.
- ● Unrelated — Missing Android Material3 snapshot baselines (390+ tests): the run reports absent baselines across Entry, Button, Slider, Label, Image, and other controls untouched by the PR's narrowly scoped Shell/TabbedPage active-indicator changes.
- ● Unrelated — Appium element-wait timeouts (a few tests): the
Material3TimePicker_SetTimeAndIsVisible_VerifyVisualStatetimeout is a known nondeterministic UI-test pattern in an unrelated control, with no stack path through the modified tab-navigation code.
Strongest signal: the dominant failures say the baseline was never present rather than reporting a changed rendering, and they span Material3 controls outside this PR's area.
❌ Material3 — 29 failed tests
Material3TimePicker_SetTimeAndIsVisible_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndIsVisible_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 262
at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetFormat_T_WithFontFamily_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_T_WithFontFamily_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 342
at System.RuntimeMethodHandle.Inv
...
Material3TimePicker_SetFontAttributesNone_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesNone_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 586
at System.RuntimeMethodHandle.InvokeMe
...
Material3TimePicker_SetTimeAndCharacterSpacing_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndCharacterSpacing_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 77
at System.RuntimeMethodHandle.Invo
...
Material3TimePicker_OldTimeAndNewTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, IQuery query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 958
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_OldTimeAndNewTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 58
at System.RuntimeMethodHandle.InvokeMethod(O
...
Material3TimePicker_SetCulture_enUS_VerifyTimeFormat
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetCulture_enUS_VerifyTimeFormat() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 383
at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_SetFontSizeAndFormat_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontSizeAndFormat_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 225
at System.RuntimeMethodHandle.InvokeMet
...
Material3TimePicker_SetFormat_T_WithFontAttributes_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_T_WithFontAttributes_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 323
at System.RuntimeMethodHandle
...
Material3TimePicker_SetCulture_jaJP_VerifyTimeFormat
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetCulture_jaJP_VerifyTimeFormat() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 424
at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_DisableFontAutoScaling_UpdatesBoundProperty
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_DisableFontAutoScaling_UpdatesBoundProperty() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 485
at System.RuntimeMethodHandle.Invo
...
Material3TimePicker_SetFontFamilyAndFontSize_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontFamilyAndFontSize_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 182
at System.RuntimeMethodHandle.Invok
...
Material3TimePicker_ModifyOldTimeAndNewTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_ModifyOldTimeAndNewTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 39
at System.RuntimeMethodHandle.InvokeM
...
Material3TimePicker_SetShadow_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetShadow_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 275
at System.RuntimeMethodHandle.InvokeMethod(ObjectH
...
Material3TimePicker_IsOpenAndEvents_StaySynchronized
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_IsOpenAndEvents_StaySynchronized() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 510
at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_SetFontAttributesAndFontFamily_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesAndFontFamily_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 123
at System.RuntimeMethodHandle
...
Material3TimePicker_SetFontAttributesAndFormat_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesAndFormat_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 156
at System.RuntimeMethodHandle.Inv
...
Material3TimePicker_SetTimeAndTextColorRed_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndTextColorRed_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 558
at System.RuntimeMethodHandle.InvokeM
...
Material3TimePicker_SetFormat_T_WithFontSize_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_T_WithFontSize_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 361
at System.RuntimeMethodHandle.Invok
...
Material3TimePicker_SetFormat_t_AndTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_t_AndTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 289
at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetTimeAndTextColor_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndTextColor_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 109
at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetFontAttributesBold_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesBold_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 572
at System.RuntimeMethodHandle.InvokeMe
...
Material3TimePicker_SetTimeAndIsEnabled_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndIsEnabled_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 247
at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetFontFamilyAndFormat_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontFamilyAndFormat_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 199
at System.RuntimeMethodHandle.InvokeM
...
Material3TimePicker_SetCulture_arEG_VerifyTimeFormat
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetCulture_arEG_VerifyTimeFormat() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 403
at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_SetFontFamilyMontserratBold_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontFamilyMontserratBold_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 607
at System.RuntimeMethodHandle.In
...
Material3TimePicker_ClearTime_UpdatesNullableTimeAndEventArgs
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_ClearTime_UpdatesNullableTimeAndEventArgs() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 445
at System.RuntimeMethodHandle.Invoke
...
Material3TimePicker_SetFontAttributesAndFontSize_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesAndFontSize_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 139
at System.RuntimeMethodHandle.I
...
Material3TimePicker_ClearTimeThenSetTime_RoundTripsNullableTime
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_ClearTimeThenSetTime_RoundTripsNullableTime() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 464
at System.RuntimeMethodHandle.Invo
...
Material3TimePicker_SetFormatTAndTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormatTAndTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 306
at System.RuntimeMethodHandle.InvokeMethod
...
⚠️ Material3 — 365 new snapshot tests need a baseline PNG
These tests call VerifyScreenshot but their baseline image isn't committed yet (brand-new snapshot tests get their baseline added separately by a maintainer). There's nothing to compare against, so this is not a regression — download the drop-deep-uitests artifact, confirm the rendering, and commit the baseline PNG.
Material3Entry_HorizontalAlignmentWithCharacterSpacing_VerifyVisualStateVerifyMaterial3Button_PaddingAndTextMaterial3Slider_SetThumbAndBackgroundColor_VerifyVisualStateMaterial3Label_VerifyLabelWithBackgroundColorLightBlueMaterial3Slider_SetMinTrackAndBackgroundColor_VerifyVisualStateMaterial3Slider_SetIsVisibleAndMaxTrackColor_VerifyVisualStateVerifyMaterial3ImageWithBackgroundColorYellowSearchBar_Material3_SetCancelButtonAndTextColor_VerifyVisualStateMaterial3DatePicker_SetFontAttributesAndFontSize_VerifyVisualStateMaterial3Switch_InitialState_VerifyVisualStateSearchBar_Material3_SetFontAttributesAndTextTransform_VerifyVisualStateMaterial3RadioButton_SetContentAndCharacterSpacing_VerifyVisualStateMaterial3Label_VerifyLabelWithFontFamilyAndFontColorMaterial3Slider_SetIsEnableAndBackgroundColor_VerifyVisualStateMaterial3ProgressBar_ToggleShadow_VerifyVisualStateMaterial3Entry_FontFamily_VerifyVisualStateMaterial3Entry_PlaceholderWithFontFamily_VerifyVisualStateVerifyMaterial3Button_ContentLayoutWithRightToLeftFlowDirectionMaterial3Editor_VerifyEditorPlaceholderWithFontFamilyVerifyMaterial3Button_WidthRequestMaterial3Slider_SetMaxTrackAndBackgroundColor_VerifyVisualStateMaterial3Entry_PlaceholderWithPasswordTrue_VerifyVisualStateVerifyMaterial3ImageAspect_FillWithFileSourceMaterial3DatePicker_OldDateAndNewDate_VerifyVisualStateMaterial3Slider_SetThumbColorAndThumbImageSource_VerifyVisualStateMaterial3Label_VerifyLabelWithTextAndFontFamilyMaterial3Slider_SetValueAndMinTrackColor_VerifyVisualStateMaterial3Label_VerifyLabelWithFontAttributesAndFontFamilyVerifyMaterial3ImageAspect_FillWithFontImageSourceVerifyMaterial3ImageButtonWithPadding
(+335 more — see TRX in artifact)
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)
🧭 Next Steps — reviewer changes required
The reviewer-enhanced candidate identified changes that are not yet in the submitted PR.
Why: The reviewer-enhanced PR retains the submitted fix's narrow update path while preserving app-specific Material 3 palette overrides and making both visual tests resilient to redraw timing. All candidates failed at the same missing snapshot-environment boundary, so none obtained a passing regression result; pr-plus-reviewer wins on code correctness and lower risk.
Address the actionable findings in this review before merging.
Preserve Material 3 active indicator theme updates alongside upstream menu generation guards, native registration teardown, and themed background handling. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Resolved the conflicts with The resolution preserves both sides:
Validation: build tasks and the GitHub now reports no merge conflicts. New-head CI is pending. This update is limited to conflict resolution: the indicator color-selection logic is unchanged, so the existing custom-theme review concern is not addressed by this merge. |
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details - On Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes. ### Root Cause - On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color. ### Description of Change - Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change. - Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes. - Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes. ### Issues Fixed Fixes #38234 ### Validated the behaviour in the following platforms - [ ] Windows - [x] Android - [ ] iOS - [ ] Mac ### Output | Before | After | |----------|----------| | <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">| <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> | --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details - On Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes. ### Root Cause - On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color. ### Description of Change - Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change. - Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes. - Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes. ### Issues Fixed Fixes #38234 ### Validated the behaviour in the following platforms - [ ] Windows - [x] Android - [ ] iOS - [ ] Mac ### Output | Before | After | |----------|----------| | <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">| <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> | --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details - On Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes. ### Root Cause - On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color. ### Description of Change - Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change. - Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes. - Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes. ### Issues Fixed Fixes #38234 ### Validated the behaviour in the following platforms - [ ] Windows - [x] Android - [ ] iOS - [ ] Mac ### Output | Before | After | |----------|----------| | <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">| <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> | --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details - On Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes. ### Root Cause - On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color. ### Description of Change - Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change. - Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes. - Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes. ### Issues Fixed Fixes #38234 ### Validated the behaviour in the following platforms - [ ] Windows - [x] Android - [ ] iOS - [ ] Mac ### Output | Before | After | |----------|----------| | <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">| <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> | --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details - On Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes. ### Root Cause - On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color. ### Description of Change - Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change. - Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes. - Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes. ### Issues Fixed Fixes #38234 ### Validated the behaviour in the following platforms - [ ] Windows - [x] Android - [ ] iOS - [ ] Mac ### Output | Before | After | |----------|----------| | <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">| <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> | --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details - On Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes. ### Root Cause - On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color. ### Description of Change - Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change. - Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes. - Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes. ### Issues Fixed Fixes #38234 ### Validated the behaviour in the following platforms - [ ] Windows - [x] Android - [ ] iOS - [ ] Mac ### Output | Before | After | |----------|----------| | <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">| <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> | --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details - On Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes. ### Root Cause - On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color. ### Description of Change - Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change. - Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes. - Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes. ### Issues Fixed Fixes #38234 ### Validated the behaviour in the following platforms - [ ] Windows - [x] Android - [ ] iOS - [ ] Mac ### Output | Before | After | |----------|----------| | <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">| <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> | --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details
Root Cause
Description of Change
Issues Fixed
Fixes #38234
Validated the behaviour in the following platforms
Output
Before_Fix.mov
After_Fix.mov