thunderbird-conversations icon indicating copy to clipboard operation
thunderbird-conversations copied to clipboard

Add native theme support (& dark mode) to the message display

Open Standard8 opened this issue 5 years ago • 15 comments

We should do this after #1608 and #1610 since we'll probably have learnt a few things from those.

Hopefully we can do this in a similar way, though I suspect there will be a few more layout issues to resolve.

Standard8 avatar Mar 06 '21 13:03 Standard8

Hey, how is this coming along? This would be a great improvement!

ryanleesipes avatar Feb 14 '22 09:02 ryanleesipes

Just found out Dark Reader cannot be used together with this add-on #1830

Perhaps this (native support) is a better idea!

Cheers.

loyukfai avatar Apr 29 '22 14:04 loyukfai

Just wondering, if the author of Dark Reader is willing, is it possible for him/her/they to adapt DR to work with your add-on?

Cause it may save time and no need to re-invent the wheel...

Cheers.

loyukfai avatar May 08 '22 15:05 loyukfai

would love this to work with dark mode!

ariccb avatar Jun 17 '22 19:06 ariccb

Hello everyone, I'm the author of Darko addon for Thunderbird and I can give you "simple" solution for the dark mode that my addon is using. It's not as good as the "Dark reader" but it's trivial to implement because it's just a single short CSS with only two styles. First one will invert the page and shift the hue to fix the colors. Second will revert this operation on images. The end!

@media not print {
    body:not(.no-darko) {
        filter: invert(100%) hue-rotate(180deg) !important;
        background: #2A2A2E !important;
    }
    body:not(.no-darko) img {
        filter: invert(100%) hue-rotate(-180deg) !important;
    }
}

Plus it's disabled for printing using media query and it can be manually disabled by adding ".no-darko" class to the body.

But again, it's not perfect solution because it doesn't detect already dark emails and the text clarity may be slightly reduced. Still, in the evening it's for sure 100% better than looking at the white background so I love it :).

Juraj-Masiar avatar Jul 17 '22 07:07 Juraj-Masiar

Any news on the issue? I am switching between light an dark based on the sun, so this needs to happen automatically, which means following system settings...

martinderm avatar Oct 16 '22 16:10 martinderm

hope this gets added soon

cyb456 avatar May 03 '23 13:05 cyb456

This is how bad it is. I want to change my email client but conversations important for me. But also dark mode too.

Ekran görüntüsü 2023-11-01 121427

amatorkoleksiyoner avatar Nov 01 '23 09:11 amatorkoleksiyoner

Based on @Juraj-Masiar's post, I added the following as a workaround to conversation.css for now:

@media screen and (prefers-color-scheme: dark) {
  .messageBody iframe:not(.no-darko) {
      filter: invert(89%) hue-rotate(180deg) !important;
      background: #27272a !important;
  }
  .messageBody iframe:not(.no-darko) img {
      filter: invert(89%) hue-rotate(-180deg) !important;
  }
}

It's not pretty. I can't target the iframe directly. I don't know how. Better than a white wire in the eye. 😇

vysmaty avatar Nov 17 '23 20:11 vysmaty

Waiting for this too, i should not have to decide between showing sent messages and dark mode

Razer0123 avatar Nov 22 '23 14:11 Razer0123

Waiting for this too, i should not have to decide between showing sent messages and dark mode

Yeah, that would be great. I've gotten used to it in color inversion. Really fast.

image

I love this extension. Thank you for it.

vysmaty avatar Nov 22 '23 15:11 vysmaty

Waiting for this too, i should not have to decide between showing sent messages and dark mode

Yeah, that would be great. I've gotten used to it in color inversion. Really fast.

image

I love this extension. Thank you for it.

How did you do this?

Razer0123 avatar Nov 22 '23 15:11 Razer0123

How did you do that?Il giorno 22 nov 2023, alle ore 16:30, martin @.***> ha scritto:

Waiting for this too, i should not have to decide between showing sent messages and dark mode

Yeah, that would be great. I've gotten used to it in color inversion. Really fast.

I love this extension. Thank you for it.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Razer0123 avatar Nov 22 '23 15:11 Razer0123

+1 I tried the custom CSS above, but it's not working for me. Having a dark mode option in the add-on settings would be amazing.

im007 avatar Apr 04 '24 01:04 im007

+1 I tried the custom CSS above, but it's not working for me. Having a dark mode option in the add-on settings would be amazing.

Yeah, something's changed. The author knows why he doesn't do hacks like this. 😉

vysmaty avatar Apr 10 '24 19:04 vysmaty