Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18566] - add custom ergon changes to plugin #1

Merged
merged 10 commits into from
Oct 30, 2024

Conversation

nikzaugg
Copy link

No description provided.

Nik Zaugg and others added 10 commits October 29, 2024 14:16
Added `allowsInlineMediaPlayback` to `WKWebViewConfiguration` to allow media to play inline. This fixed the camera overlay issues when the camera is opened within the webview.
Replace existing done button with a close button ('X' icon) in WKWebViewController. Introduce a new method to handle the close action by dismissing the web view.
Add logic to set the status bar background color to white when WKWebViewController appears, and remove it when the view disappears. This ensures a consistent appearance of the status bar with the underlying app theme.
This update modifies the InAppBrowserPlugin to set the navigation bar tint color to white. This ensures that the appearance of the navigation bar matches the underlying app theme (white).
This change removes the shadow effect by setting the elevation to 0dp for the AppBarLayout in the browser activity layout. Removes the unwanted line (shadow) between the AppBarLayout and the content underneath.
Changed the close button alignment from start to end and added right padding. Ensures that the position of the close button is at the same position as our close buttons in the app.
Updated the WebViewDialog to use setStatusBarColor and setNavigationBarColor instead of setting the window to fullscreen. This changes the UI to have a white status bar and a light grey navigation bar (at very bottom).
Set the WebView background color to white for better visual consistency. This change ensures that the WebView has a default white background.
# Conflicts:
#	android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewDialog.java
#	ios/Plugin/WKWebViewController.swift
@ergonsomr ergonsomr changed the base branch from main to ergon-main October 30, 2024 13:46
@ergonsomr ergonsomr merged commit 24861dd into ergon-main Oct 30, 2024
3 checks passed
@ergonsomr ergonsomr deleted the nik/integrate-ergon-changes branch October 30, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants