-
-
Notifications
You must be signed in to change notification settings - Fork 83
feat(edge-to-edge): support different colors for the navigation bar and status bar #601
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
base: main
Are you sure you want to change the base?
Conversation
…nd status bar - support different colors for the navigation bar and status bar
Adjustment remove insets to remove status bar view
|
Some one please merge this PR @robingenz |
|
@abhinavs97 yes, I tested it's working fine. Maybe you could test to make sure there's nothing I missed. |
|
@rixhkai After changing the Status Bar color, can’t we change it back to transparent? For example, we could make it red on some pages and transparent on others. |
|
@abhinavs97 if transparent you mean is reflecting background color of WebView that's not gonna work, because even without this merge if you set transparent background it will show black. it need different approach, currently this plugin is adding margin inset to WebView. which the purpose is to disable edge to edge and make it behave like before android 35. otherwise the approach is getting system inset and send the safe area inset to WebView, then handle it in WebView with css. I can make PR for safe area approach |
|
@robingenz Any update on this PR? When we are gonna merge it? Or this change will come come in next capacitor release? |
|
@abhinavs97 I haven't had time to review this PR yet. It would be good if the community can already test the PR using the dev build and provide feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it would make sense to deprecate the setBackgroundColor method and add another setNavigationBarBackgroundColor method.
|
Hey I tested out the pull request and it is working in all my scenarios. I can confirm that the original setBackgroundColor does not support Super thanks for this feature! I think there are plenty of use-cases for a full screen image that needs separate top and bottom bar overlays. Let me know if I can help in other ways to push this through |
|
Is there an update on this one? |
| * | ||
| * @since 7.0.0 | ||
| */ | ||
| setBackgroundColor(options: SetBackgroundColorOptions): Promise<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May this methods needs to be renamed as well to setNavigationBarBackgroundColor. And accordingly to all the other methods and properties as well.
As also stated in one comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changeset is missing
|
is there any problem where this pull request can't be accepted? |
Yes there are two errors in the checks. That's why it can't be accepted. |
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run changeset).Related to #460