Use transparent background / original view

pull/194/merge
M66B 3 years ago
parent e5f0151082
commit d186d2099d

@ -120,8 +120,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
boolean dark = Helper.isDarkTheme(context); boolean dark = Helper.isDarkTheme(context);
if (WebViewEx.isFeatureSupported(WebViewFeature.FORCE_DARK)) if (WebViewEx.isFeatureSupported(WebViewFeature.FORCE_DARK))
WebSettingsCompat.setForceDark(settings, dark && !force_light ? FORCE_DARK_ON : FORCE_DARK_OFF); WebSettingsCompat.setForceDark(settings, dark && !force_light ? FORCE_DARK_ON : FORCE_DARK_OFF);
if (!dark) setBackgroundColor(Color.TRANSPARENT);
setBackgroundColor(ColorUtils.setAlphaComponent(Color.WHITE, 127));
float fontSize = 16f /* Default */ * message_zoom / 100f; float fontSize = 16f /* Default */ * message_zoom / 100f;
if (zoom == 0 /* small */) if (zoom == 0 /* small */)

Loading…
Cancel
Save