nareeboy
nareeboy

Reputation: 149

Customize cordova inapp browser

I wish to change the text and colour of the done link on the cordova inapp browser. My project is built with ionic and cordova and I made changes in the /plugins/org.apache.cordova.inappbrowser/src/ios/CDVInAppBrowser.m file but nothing happened.

What am I doing wrong?

Upvotes: 0

Views: 590

Answers (1)

Kevincore
Kevincore

Reputation: 504

If anyone is still looking for an answer to this. I was able to change the color.

In your CDVInAppBrowser.m file, you can edit following line:

self.closeButton.tintColor = [UIColor colorWithRed:241.0 / 255.0 green:136.0 / 255.0 blue:0.0 / 250.0 alpha:1];

If you also want to change the color of the next/previous arrow add following lines:

self.backButton.tintColor = [UIColor whiteColor];
self.forwardButton.tintColor = [UIColor whiteColor];

Resulting in this layout

Upvotes: 1

Related Questions