GitToTheHub commented on issue #1949: URL: https://github.com/apache/cordova-android/issues/1949#issuecomment-4601282271
Thank you for explaining the background. I didn't know about that background. > The custom JS API we added on iOS is only intended for cases where the theme-color option doesn't work, but it was intended to support all the same values. But why the custom JS API was added, when support for the preference `StatusBarBackgroundColor` of `config.xml` was added also? Reagarding you [issue on Chromium](https://issues.chromium.org/issues/506193601), you write: > so app UI such as ActionBars can be tinted to match the website theme. So the equivalent of `theme-color` would be the preference `BackgroundColor` of `config.xml`? But I see `BackgroundColor` also tints the splash screen. So `theme-color` is a middle between `StatusBarBackgroundColor` and `BackgroundColor`? If theoretically `meta theme-color` tag would be supported by iOS and Android, would the custom JS API still be needed and could the preference `StatusBarBackgroundColor` of `config.xml` than be dropped? > Unfortunately, while iOS WKWebView gives us a themeColor property as of iOS 15.4, the Android WebView does not give us any access to the page's declared theme colour (yet). So did I understand correctly, that the custom JS API is added to iOS because iOS 15.4 gives access to the `themeColor` property, or what do you mean before with `is only intended for cases where the theme-color option doesn't work`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
