mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Use transparent background / original view
This commit is contained in:
parent
e5f0151082
commit
d186d2099d
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue