Skip to content

Conversation

emmauss
Copy link
Contributor

@emmauss emmauss commented Jun 11, 2025

What does the pull request do?

Follow up for #18844 .
This time system bar theme is now ignored for android 15 when targeting api level 35. This fixes an issue where you app is in light mode, all theme colors are light, but because on the new nav bar filter that android applies to darken the nav bar over the activity, setting the system bar to light theme appearance, thus giving it a dark foreground, will cause the nav bar buttons to disappear.

Now, android will always use a light foreground color if nav bar is visible, or will detect and use the requested DayNight config of the app when system bars are hidden.

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

…re system bar color changes if on api level 35
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0056963-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0056975-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Jun 13, 2025
Merged via the queue into master with commit 2b3b1ef Jun 13, 2025
12 checks passed
@maxkatz6 maxkatz6 deleted the fix_api_35_inset_colors branch June 13, 2025 04:54
@MrJul MrJul added backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch and removed backported-11.3.x labels Jun 13, 2025
MrJul pushed a commit that referenced this pull request Jun 24, 2025
…re system bar color changes if on api level 35 (#19034)

* android: better api level detection for display edge to edge and ignore system bar color changes if on api level 35

* allow fully transparent nav bars when display edge to edge is forced
@MrJul MrJul added backported-11.3.x and removed backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants