Closed Bug 1749781 Opened 3 years ago Closed 3 years ago

[Windows 10] [Dark Theme] [Light Theme] My OS is in dark mode but Thunderbird in light mode: Details field of calendar appointments has black background and black text color

Categories

(Calendar :: Calendar Frontend, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91? fixed, thunderbird97 unaffected, thunderbird98 unaffected)

RESOLVED FIXED
91 Branch
Tracking Status
thunderbird_esr91 ? fixed
thunderbird97 --- unaffected
thunderbird98 --- unaffected

People

(Reporter: mozilla, Assigned: Paenglab)

Details

Attachments

(3 files, 1 obsolete file)

Attached image black-bg-2.jpg β€”

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0

Steps to reproduce:

I have activated windows 10 dark mode for apps. I have activated Thunderbird Light Theme (and deactivated dark theme and system theme).

Actual results:

All my appointments that I open in detail have a black background and a black text color in the big remark area. So I cannot read any remark. (This is the same in edit mode and in read only mode of the appointment item.)

Expected results:

Remark field should also have white background as all the other small fields do have, indipendently from he OS theme.

Component: Untriaged → Calendar Frontend
Product: Thunderbird → Calendar

This happens only on 91.

It seems that inside the iframe the <html> doesn't get the background-color of the theme. My patch is a hack to get it working with the light TB theme when the dark system theme is active.

Assignee: nobody → richard.marti
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9258747 - Flags: review?(alessandro)

Do I have to wait for a later version or can I use this patch in any way at this time by myself? :)

You have to wait.

Comment on attachment 9258747 [details] [diff] [review] 1749781-event-description-background.patch Review of attachment 9258747 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, this works.
Attachment #9258747 - Flags: review?(alessandro) → review+

Comment on attachment 9258747 [details] [diff] [review]
1749781-event-description-background.patch

[Approval Request Comment]
User impact if declined: unreadable description in events with dark system and light TB theme.
Testing completed (on c-c, etc.): ESR-91 only bug
Risk to taking this patch (and alternatives if risky): should be low.

Attachment #9258747 - Flags: approval-comm-esr91?

Closing bug because it lands only on ESR.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9258747 [details] [diff] [review]
1749781-event-description-background.patch

[Triage Comment]
Approved for esr91

Attachment #9258747 - Flags: approval-comm-esr91? → approval-comm-esr91+
Target Milestone: --- → 91 Branch

Reopened due to test failures and the fact that this change is affecting extensions that style the compose window.
https://treeherder.mozilla.org/jobs?repo=comm-esr91&selectedTaskRun=JU4eSuy_QPWZfaplDVhMTQ.0

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch 91-event-editor.diff (obsolete) β€” β€” Splinter Review

I fixed the tests and the regression by creating a dedicated event editor CSS.
This is only necessary for 91 as it seems that editor doesn't inherit the correct background color, not sure why since the compose editor does. Probably an old toolkit issue due to the calendar event dialog having nested iframes.
Asking for a review to Richard to be sure the dialog looks good.

Attachment #9262247 - Flags: review?(richard.marti)

Comment on attachment 9262247 [details] [diff] [review]
91-event-editor.diff

This doesn't work for me. I get following error: Security Error: Content at moz-nullprincipal:{ed8d3c8d-a694-4f0c-a0dd-12e63a94e25b} may not load or link to chrome://calendar/content/calendar-event-editor.css..

Also the summary dialog needs the same treatment.

Attachment #9262247 - Flags: review?(richard.marti) → review-

Moving calendar-event-editor.css to the same place as EditorContent.css makes it working.

Attached patch 91-event-editor.diff β€” β€” Splinter Review
Attachment #9262247 - Attachment is obsolete: true
Attachment #9262412 - Flags: review?(richard.marti)
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED

Comment on attachment 9262412 [details] [diff] [review]
91-event-editor.diff

Thanks!

Attachment #9262412 - Flags: review?(richard.marti) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: