cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

feat: Allow changing location bg and text color

Open dpalou opened this issue 3 years ago • 0 comments

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

dpalou avatar Nov 22 '21 09:11 dpalou