Closed Bug 1725896 Opened 3 years ago Closed 3 years ago

New chat message now white on white in dark mode (starting 92b1.)

Categories

(Thunderbird :: Theme, defect)

Thunderbird 92
defect

Tracking

(thunderbird_esr91 fixed, thunderbird92 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
thunderbird_esr91 --- fixed
thunderbird92 --- fixed

People

(Reporter: ari, Assigned: Paenglab)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

  1. Upgrade to Thunderbird 92b1. The problem did not happen in 91 betas.
  2. Use dark mode on OSX
  3. Have theme set up with white text on black background for writing new emails

Actual results:

Chat window is now white text on white backgrounnd. Note the screen shot here shows some text highlighted. Without the highlight it is completely invisible.

Expected results:

Either black text on white or use same settings as new email window which gives me white text on black.

Blocks: tb-dark-mode
Component: Untriaged → Theme
Keywords: regression
Summary: New chat message now white on white in dark mode → New chat message now white on white in dark mode (starting 92b1.)

This is also a fallout from bug 1698814. I used the bug also to unify the code for the box and use the Proton styling for focus and error.

I could also provide a patch for ESR 91 without the variable change.

Assignee: nobody → richard.marti
Attachment #9236479 - Flags: review?(alessandro)
Regressed by: 1698814
Comment on attachment 9236479 [details] [diff] [review]
1725896-chat-variable-clean-up.patch

Review of attachment 9236479 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/components/im/themes/chat.css
@@ +502,5 @@
>  }
>  
> +.conv-textbox:focus-visible {
> +  border-color: var(--toolbar-field-focus-border-color);
> +  outline: 1px solid var(--toolbar-field-focus-border-color);

This double border + outline doesn't work well with 4k monitors and scaled up text.
Attachment #9236479 - Flags: review?(alessandro) → feedback+
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Now with a 2px border instead of 1px border and 1px outline.

Attachment #9236479 - Attachment is obsolete: true
Attachment #9236492 - Flags: review?(alessandro)
Comment on attachment 9236492 [details] [diff] [review]
1725896-chat-variable-clean-up.patch

Review of attachment 9236492 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, thanks.
Attachment #9236492 - Flags: review?(alessandro) → review+
Target Milestone: --- → 93 Branch

I could also provide a patch for ESR 91 without the variable change.

Yes, if the focus styling is wrong in 91 we could have a dedicated patch to uplift without the variable change.
ore of a visual enhancement than a defect at that point, but I don't think it would be a problem unless we want to be conservative with our uplifts.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/5a67e5e08877
Port bug 1698814 (Clean up --lwt-toolbar-field-* variables after proton) also to chat. r=aleca

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

Comment on attachment 9236492 [details] [diff] [review]
1725896-chat-variable-clean-up.patch

[Approval Request Comment]
User impact if declined: with dark theme no contrast on chat input box and no Proton focus styling
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9236492 - Flags: approval-comm-beta?

[Approval Request Comment]
User impact if declined: chat input box doesn't have the Proton focus styling
Testing completed (on c-c, etc.): on c-c (with additional variable renaming)
Risk to taking this patch (and alternatives if risky): low

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

Comment on attachment 9236492 [details] [diff] [review]
1725896-chat-variable-clean-up.patch

[Triage Comment]
Approved for beta

Attachment #9236492 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9236656 [details] [diff] [review]
1725896-chat-focus-ESR.patch

[Triage Comment]
Approved for esr91, even though it hasn't been through beta, because chat is unusable in dark mode, and should only affect those users (rjl agrees)

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

Attachment

General

Creator:
Created:
Updated:
Size: