cordova-plugin-inappbrowser
cordova-plugin-inappbrowser copied to clipboard
feat: Allow changing location bg and text color
Platforms affected
Android iOS
Motivation and Context
This PR allows changing the color of the URL text (Android & iOS) and also the background color of the location bar (iOS only). The plugin allows changing the color of other elements (toolbar, navigation buttons, close button) so it makes sense to also be able to change these colors.
Description
I added 2 new options: one for Android&iOS and one for iOS only to allow changing the colors.
Testing
Open the InAppBrowser passing the options "locationcolor" and "locationtextcolor" to any value you want and check that the location background (iOS only) and text changes to the colors you specified.
Checklist
- [ ] I've run the tests to see all new and existing tests pass
- [ ] I added automated test coverage as appropriate for this change
- [x] Commit is prefixed with
(platform)
if this change only applies to one platform (e.g.(android)
) - [x] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
- [x] I've updated the documentation if necessary