Made SquaresDark theme really dark.

Due to that, e-mails with incorrect background/color settings are unreadable.
So a new feature in the settings is there to remove colors from messages.
Not perfect yet, but it works.
This commit is contained in:
djmaze 2021-02-24 00:17:53 +01:00
parent fac36e828b
commit 2982027dd2
22 changed files with 164 additions and 63 deletions

View file

@ -300,8 +300,7 @@ class MessageViewMailBoxUserView extends AbstractViewRight {
detectDomBackgroundColor(dom) {
let color = '';
if (dom) {
if (dom && !SettingsStore.removeColors()) {
let limit = 5,
aC = dom;
while (!color && aC && limit--) {
@ -317,7 +316,6 @@ class MessageViewMailBoxUserView extends AbstractViewRight {
color = isTransparent(color) ? '' : color;
}
return color;
}