@capgo/inappbrowser 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -122,11 +122,18 @@ public class WebViewDialog extends Dialog {
122
122
 
123
123
  private void setupToolbar() {
124
124
  _toolbar = this.findViewById(R.id.tool_bar);
125
+ int color = Color.parseColor("#ffffff");
125
126
  try {
126
- _toolbar.setBackgroundColor(Color.parseColor(_options.getToolbarColor()));
127
+ color = Color.parseColor(_options.getToolbarColor());
127
128
  } catch (IllegalArgumentException e) {
128
- _toolbar.setBackgroundColor(Color.parseColor("#ffffff"));
129
+ // Do nothing
129
130
  }
131
+ _toolbar.setBackgroundColor(color);
132
+ _toolbar.findViewById(R.id.backButton).setBackgroundColor(color);
133
+ _toolbar.findViewById(R.id.forwardButton).setBackgroundColor(color);
134
+ _toolbar.findViewById(R.id.closeButton).setBackgroundColor(color);
135
+ _toolbar.findViewById(R.id.reloadButton).setBackgroundColor(color);
136
+
130
137
  if (!TextUtils.isEmpty(_options.getTitle())) {
131
138
  this.setTitle(_options.getTitle());
132
139
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",