feat(edge-to-edge): support different colors for the navigation bar and status bar#601
feat(edge-to-edge): support different colors for the navigation bar and status bar#601rixhkai wants to merge 3 commits into
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. |
robingenz
left a comment
There was a problem hiding this comment.
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.
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
mariomurrent-softwaresolutions
left a comment
There was a problem hiding this comment.
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. |
|
Is there any possibility to make the background transparent? |
For the status bar? Or the navigation bar? |
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run changeset).Related to #460