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

[feat] sync webview theme with window theme on Android #7052

Closed
FlysoftBeta opened this issue May 24, 2023 · 1 comment
Closed

[feat] sync webview theme with window theme on Android #7052

FlysoftBeta opened this issue May 24, 2023 · 1 comment

Comments

@FlysoftBeta
Copy link
Contributor

Describe the problem

I am building an android app using tauri, and there is a white screen on start, it looks like the following:
Screenshot_20230524_230429
but actually the webpage supports dark mode, after the webview is loaded, the background turns dark.

Describe the solution you'd like

I would like to make the app theme match with the webpage, not only the background color, but also the action bar's color
Screenshot_20230524_231230.

Alternatives considered

No response

Additional context

A pr with similar functionality, but it's a Windows implementation: #5874

@amrbashir
Copy link
Member

you can control the status bar colors and behavior by modifying gen/android/app/src/main/res/values/themes.xml and call the needed kotlin code in gen/android/app/src/main/java/com/tauri/tauri-app/ManiActivity.kt, see https://stackoverflow.com/questions/29311078/android-completely-transparent-status-bar for more info

@amrbashir amrbashir closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants