mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Fixed background / cannot darken
This commit is contained in:
parent
5526eb435b
commit
00b04423de
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
||||||
boolean canDarken = WebViewEx.isFeatureSupported(WebViewFeature.ALGORITHMIC_DARKENING);
|
boolean canDarken = WebViewEx.isFeatureSupported(WebViewFeature.ALGORITHMIC_DARKENING);
|
||||||
if (canDarken)
|
if (canDarken)
|
||||||
WebSettingsCompat.setAlgorithmicDarkeningAllowed(settings, dark && !force_light);
|
WebSettingsCompat.setAlgorithmicDarkeningAllowed(settings, dark && !force_light);
|
||||||
setBackgroundColor(canDarken && force_light ? Color.WHITE : Color.TRANSPARENT);
|
setBackgroundColor(canDarken && dark && !force_light ? Color.TRANSPARENT : Color.WHITE);
|
||||||
|
|
||||||
float fontSize = 16f /* Default */ *
|
float fontSize = 16f /* Default */ *
|
||||||
(browser_zoom ? 1f : message_zoom / 100f);
|
(browser_zoom ? 1f : message_zoom / 100f);
|
||||||
|
|
Loading…
Reference in a new issue