Closed Bug 1958728 Opened 1 year ago Closed 1 year ago

Some emails have a dark background if the system is in dark mode, even if message dark mode is disabled

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 139
defect

Tracking

(thunderbird_esr128 unaffected, thunderbird138 fixed)

RESOLVED FIXED
139 Branch
Tracking Status
thunderbird_esr128 --- unaffected
thunderbird138 --- fixed

People

(Reporter: skyschub, Assigned: Paenglab)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image example-email.png

I am on macOS, with the system (and thus Thunderbird) in dark mode, but my mail content is explicitly not in dark mode - the "Enable dark message mode" checkbox is not set, and the dark mode toggle is in "light mode". This is deliberate on my end, because a lot of mails don't work in dark mode, so I just want the mail content to be "light mode", even with the chrome in dark mode.

Despite my "light mode" settings, lots of HTML-emails now have a dark background, and all plain text mails have a dark theme. This is making a lot of mails harder to read or near impossible to read, because the font color isn't adjusted - I've attached a screenshot of an email.

mozregression pointed me to this push, so I'm fairly sure this is a regression of bug 1957508.

Flags: needinfo?(richard.marti)

The right solution should probably toggle color-scheme: dark following the light/dark toggle switch.

Martin, is it possible (if yes, how?) to inject the style color-scheme from here to the message? As I know the message is protected from external access which could make it complicated.

Flags: needinfo?(richard.marti) → needinfo?(martin)

Since that's controlled by prefs, I wonder if we could actually use pref media queries to apply the better matching color scheme. Though it's possible that the stylesheet we use isn't "low level" enough to get to do that.

Flags: needinfo?(martin)
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Target Milestone: --- → 139 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0e98866f1c64
Apply the color-scheme only when dark reader is enabled. r=freaktechnik,aleca

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Comment on attachment 9477438 [details]
Bug 1958728 - Apply the color-scheme only when dark reader is enabled. r=#thunderbird-front-end-reviewers

Flag not set.

Comment on attachment 9477438 [details]
Bug 1958728 - Apply the color-scheme only when dark reader is enabled. r=#thunderbird-front-end-reviewers

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: On dark system with light TB theme the message reader shows still in dark mode.
  • User impact if declined: Wrong message reader color scheme.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Daily?: Yes
  • Has the fix been verified in Beta?: N/A
  • Needs manual test from QA?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: Bug 1957508
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small CSS change
  • String changes made/needed: no
Attachment #9477438 - Flags: approval-comm-beta?

Comment on attachment 9477438 [details]
Bug 1958728 - Apply the color-scheme only when dark reader is enabled. r=#thunderbird-front-end-reviewers

[Triage Comment]
Approved for beta

Attachment #9477438 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: