-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text and background color from Composition settings ignored in Dark mode #168
Comments
This implemented via the attributes text and bgcolor in the body element.
At first glance, we could just preserve these attributes and copy them into the new body element - this may counteract any style rules that c0ouild be attached to the wanted template (imagine you have a letter paper with yellow background) so this needs to be done in a way that can still be overwritten with CSS. |
Without SmartTemplates, these color attributes would probably be injected by Thunderbird after the
the easiest way would probably injecting these if the option "Use reader's default colors" is inactive. This boolean flag is stored in |
As part of its event handler https://searchfox.org/comm-esr91/source/mail/components/compose/content/MsgComposeCommands.js#9071 I can probably replicate the coloring code from there. |
For composing new messages - I added a call to Thunderbird's internal function smartTemplate-fx-3.10pre13.zip to try out this version, download the zip file, the drag it (without unpacking) into Thunderbird Add-ons manager. |
Fixed in 3.10.1 released on 04/Feb/2022 |
Hello. I add some pictures below. Hope they can be helpful: If I press reply to the email on the picture below, I get white background and white text. If I press forward, I get wrong colours - black background and black or white text. |
Hi. Adding that code makes the colors right also when forwarding. Thanks. |
In Thunderbird's Composition settings under HTML style the user can choose not to use the default colors of the reader but configure specific colors for text and background:
With SmartTemplates this setting is ignored and the composer shows bright text on dark background regardless. Expected behavior would be to transfer these colors to the new template.
The text was updated successfully, but these errors were encountered: