Closed Bug 1722126 Opened 4 years ago Closed 4 years ago

"Restart to Update" button on About box isn't visible on Mac in dark mode

Categories

(Thunderbird :: Theme, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91 fixed, thunderbird91? affected, thunderbird92? fixed)

RESOLVED FIXED
93 Branch
Tracking Status
thunderbird_esr91 --- fixed
thunderbird91 ? affected
thunderbird92 ? fixed

People

(Reporter: justdave, Assigned: Paenglab)

References

Details

Attachments

(7 files)

The text on the button is unreadable.

Summary: "Restart to Update" button on About box isn't visible on OS X in dark mode → "Restart to Update" button on About box isn't visible on Mac in dark mode

screenshot with a more-recent version

The button gets the white text colour defined here https://searchfox.org/mozilla-central/rev/c03526cc1d773532e89cb4b729c68fbf37737c1b/toolkit/themes/osx/global/button.css#12 but the button background stays white. Disabling widget.macos.support-dark-appearance fixes this but then also other places don't get the correct colours for dark themes. Also the context menus have still a light background with white text.

It doesn't seem to be a CSS issue, the button and the menus don't get the correct background-colors.

Harry, you fixed a lot of widget.macos.support-dark-appearance bugs. Please could you point us to what is needed to fix this issues for Thunderbird 91? Daily (our nightly) shows the correct menu text on the light background.

Flags: needinfo?(htwyford)

When are we going to create another version of that logo background picture for dark themes which has the brand name text color inverted on transparent background? Or to convert it into svg so that we can apply colors directly?

I'd imagine that the blue bird holding the white letter will actually look great on dark background...

Yeah, making the background dark would be the best way to fix this. Native macOS buttons in Dark Mode have a translucent white border and background. This looks good on dark backgrounds (it results in a dark grey which has enough contrast with the white text), but obviously looks terrible on a white background.
In the future, in situations where you have a light background which doesn't work with dark theme form controls, you'll be able to set color-scheme: light on the element and get light mode form controls and system colors for that element. This is implemented on Nightly now but is still behind a pref (layout.css.color-scheme.enabled).

Flags: needinfo?(htwyford)

(In reply to Richard Marti (:Paenglab) from comment #2)

Daily (our nightly) shows the correct menu text on the light background.

This is surprising to me. I'd have expected the text to be white even in Daily.

(In reply to Markus Stange [:mstange] from comment #4)

Yeah, making the background dark would be the best way to fix this. Native macOS buttons in Dark Mode have a translucent white border and background. This looks good on dark backgrounds (it results in a dark grey which has enough contrast with the white text), but obviously looks terrible on a white background.
In the future, in situations where you have a light background which doesn't work with dark theme form controls, you'll be able to set color-scheme: light on the element and get light mode form controls and system colors for that element. This is implemented on Nightly now but is still behind a pref (layout.css.color-scheme.enabled).

Many thanks for the answer. So we need to either adapt the background colour depending of the theme or always use a dark background like FX is doing.

Attached image context-menu.png

(In reply to Markus Stange [:mstange] from comment #5)

(In reply to Richard Marti (:Paenglab) from comment #2)

Daily (our nightly) shows the correct menu text on the light background.

This is surprising to me. I'd have expected the text to be white even in Daily.

On the left is the latest beta with light macOS theme and dark TB theme. On the right the latest Daily with the same themes. Spot also the correct Big Sur _moz-menuactive appearance of the Daily like FX Nightly does. With my self built artifact TB Daily I get the same appearance like the beta has.

Oh, menu text. I misread. I thought you were referring to the button text. The menu issue is very different.

Is somewhere a bug about the menu issue to get an idea what's the problem?

I'm not aware of one. Can you file it, please?

Attached image aboutDialog.png

Alessandro, what do you think about this for light and dark themes? Daily and Release would use the same styles.

I'm using the Daily SVG logo as the actual with the orange background doesn't work well with the dark background. And like this you see directly how the Release dialog would look.

Attachment #9233653 - Flags: feedback?(alessandro)

Comment on attachment 9233653 [details]
aboutDialog.png

I like it.
The only thing I'd change is the icon's shadow/glow.
I think we don't need to use a drop shadow for the logo, which is pretty big and with a good contrast in both dark and light mode.

Attachment #9233653 - Flags: feedback?(alessandro) → feedback+

This is the patch without the drop shadow. I still use the separate CSS files for Daily and Release to be able to style different when needed.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9235525 - Flags: review?(alessandro)
Comment on attachment 9235525 [details] [diff] [review] 1722126-aboutDialog-rework.patch landed on C-C Review of attachment 9235525 [details] [diff] [review]: ----------------------------------------------------------------- Nice, good job.
Attachment #9235525 - Flags: review?(alessandro) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4e6f168814f6
Make the about dialog theme dependent. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch

Bah, I planned to add the high contrast styles too but forgot.

Now with HCT support.

Attachment #9235805 - Flags: review?(alessandro)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #9235525 - Attachment description: 1722126-aboutDialog-rework.patch → 1722126-aboutDialog-rework.patch landed on C-C
Attachment #9235805 - Flags: review?(alessandro) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8e69ac73e234
Follow-up to make the about dialog also work with HCT. r=aleca

Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED

Combined both patches for beta and ESR.

[Approval Request Comment]
User impact if declined: Unreadable Download/Restart button with dark theme on light OS theme
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): should be low as it's mostly CSS

Attachment #9235980 - Flags: review+
Attachment #9235980 - Flags: approval-comm-esr91?
Attachment #9235980 - Flags: approval-comm-beta?

Comment on attachment 9235980 [details] [diff] [review]
1722126-aboutDialog-rework-beta-esr.patch

[Triage Comment]
approved for beta

Attachment #9235980 - Flags: approval-comm-beta? → approval-comm-beta+
Regressions: 1726172

Comment on attachment 9235980 [details] [diff] [review]
1722126-aboutDialog-rework-beta-esr.patch

[Triage Comment]
Approved for esr91

Attachment #9235980 - 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

Created:
Updated:
Size: