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

Android SystemBar Icons theme (Light, Dark) in 11.1.0-rc1 #16065

Closed
mosabnasri opened this issue Jun 19, 2024 · 0 comments · Fixed by #16159
Closed

Android SystemBar Icons theme (Light, Dark) in 11.1.0-rc1 #16065

mosabnasri opened this issue Jun 19, 2024 · 0 comments · Fixed by #16159

Comments

@mosabnasri
Copy link

Describe the bug

I having an issue on Android that is unique the v11.1.0-rc1.

The StatusBar (SystemBar) icons color no longer has the right theme when the app starts.

It works as it should when on app re-open when its on bakckground mode.

Video_AvaloniaUI_Issue.mp4

I have tried to change the icons theme manually but i couldn't find a way. I was only able to change the SystemBarColor using
TopLevel.GetTopLevel(this).InsetsManager.SystemBarColor = Colors.Yellow; but it looks like the icons theme is not automatically changing according the the SystemBarColor.

ps: this was not happening is 11.1.0-beta1 and 11.1.0-beta2

To Reproduce

Create the latest available beta template project, upgrade the Avalonia packages to 11.1.0-rc1 and change RequestedThemeVariant from "Default" to "Light" in App.axaml file.

Or get it my source code from https://github.com/mosabnasri/avaloniaui-issue-systembar-theme-on-android.

Build and run the Android Project.

Expected behavior

No response

Avalonia version

11.1.0-rc1

OS

Android

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants