Closed Bug 1721264 Opened 3 years ago Closed 3 years ago

In dark mode, tooltip text is unreadable (white on yellow background); in folderpane and threadpane for example

Categories

(Thunderbird :: Theme, defect)

Unspecified
Linux
defect

Tracking

(thunderbird_esr91 unaffected)

RESOLVED FIXED
101 Branch
Tracking Status
thunderbird_esr91 --- unaffected

People

(Reporter: alta88, Assigned: Paenglab)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(2 files, 3 obsolete files)

Seen on linux, at least.

Blocks: tb-dark-mode

Not very helpful bug description with no STR. I occupy this bug to make the tooltips use colours depending of the theme group.

Alessandro, what do you think about this approach? We can't use theme colours as the variables aren't loaded into tooltips. I made three groups: light, dark and high contrast.

Also the dimensions are the same on the platforms as a compromise. Normally Linux uses bigger tooltips than the other platforms. Now they are a bit bigger on Mac and Linux and a bit smaller on Linux.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9232682 - Flags: review?(alessandro)

STR is pretty evident from the summary: be in dark mode, hover a cropped item in folderpane/threadpane :\

I don't know that tooltips need to be theme aware, there is no change in tooltips in dark mode in Firefox. All that needs to be done is to ensure currentColor is not inherited by the tooltip text but that it remains dark on yellow bg.

On Linux it's always white on black here, no matter what TB theme is used. On FX the tab and bookmark tooltips are themed...and multiline.

With my patch the tooltips follow the TB theme and not the system theme.

On Linux it's always white on black here, no matter what TB theme is used.

Same here, I can't reproduce the issue.
Could you specify which tooltips are not looking correct?
Is this on 78 or daily?
Also a screenshot/screencast of the problem would be useful.

It's fine on 78; the screenshot is from today's daily (but it also happens on beta) - no extensions.

I'm a bit concerned about this.

I can't reproduce this issue even if I tried in multiple distros with both OS dark mode and/or TB dark theme.
I'd like to get more info to identify/reproduce the problem and what's causing it, rather than forcing some custom styling to bypass the issue.

A bunch of more questions:

  • Does it happen for every tooltip?
  • What dark theme are you using? OS or TB?
  • If OS, what theme are you using? (Adwaita dark, etc,)
  • GTK, KDE, or something else?
  • Does it happen with Firefox as well?

I found a use case: on Mac set the system dark theme and on TB a light theme. The tooltip have now a black text on dark background. Happens also vice versa.

Added imtooltip. Needed separated files as Mac is again a bit different.

Attachment #9232682 - Attachment is obsolete: true
Attachment #9232682 - Flags: review?(alessandro)
Attachment #9232790 - Flags: review?(alessandro)

(In reply to Alessandro Castellani [:aleca] from comment #7)

I'm a bit concerned about this.

I can't reproduce this issue even if I tried in multiple distros with both OS dark mode and/or TB dark theme.
I'd like to get more info to identify/reproduce the problem and what's causing it, rather than forcing some custom styling to bypass the issue.

A bunch of more questions:

  • Does it happen for every tooltip?

Yes, cropped tabs too..

  • What dark theme are you using? OS or TB?

Tb dark theme.

  • If OS, what theme are you using? (Adwaita dark, etc,)

Linux Mint Mint-x non dark.

  • GTK, KDE, or something else?

Gnome, GTK.

  • Does it happen with Firefox as well?

No, Fx 92 has tabs and library (nsITree still) crops with dark bg and light text tooltips.

Fixed an issue with the QFB search tooltip.

Attachment #9232790 - Attachment is obsolete: true
Attachment #9232790 - Flags: review?(alessandro)
Attachment #9235019 - Flags: review?(alessandro)
Comment on attachment 9235019 [details] [diff] [review] 1721264-tooltip-theme-aware.patch Review of attachment 9235019 [details] [diff] [review]: ----------------------------------------------------------------- This solves the issue you found, which I can reproduce on macOS. But I don't think we should go this way of forcibly applying our own style to the tooltip. With this, the TB tooltips on Linux look completely different from all the other tooltips styled by the desktop environment.
Attachment #9235019 - Flags: review?(alessandro) → feedback+

We do on other places an unified style with reduced platform styling. This would be another place we could do this.

When we don't do this how could we resolve the issue?

This issue no longer happens on current nightly, so something somewhere (toolkit?) changed. I think it's important to uplift the change to 91, as it is still present in 91.0.2.

Thanks for checking.
Indeed something must have changed in the toolkit since we haven't touched this.
Let the regression hunt begin.

I opened bug 1732987 for similar issue on macOS: don't know if it's a duplicate of this since it's on a different operating system.

There are still issues with dark Mac system theme. What do you think could be done further?

Flags: needinfo?(alessandro)

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

There are still issues with dark Mac system theme. What do you think could be done further?

Change the font color to white in the Hints/Tooltips and Menus.

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

We do on other places an unified style with reduced platform styling. This would be another place we could do this.

When we don't do this how could we resolve the issue?

And. Why do I have this issue in the first place when I have Light theme enabled and Dark theme is disabled?

Problem persists

macOS Monterey 12.0.1
Thunderbird 91.3.0

Emilio, do you have any suggestion for this issue?

Flags: needinfo?(alessandro) → needinfo?(emilio)

Tested with TB95 beta and the tooltips are working correctly with dark system theme and light TB theme.

So maybe this was fixed by bug 1736252?

Flags: needinfo?(emilio)

Yep, that's the kind of issue that patch can fix.

Marking this as duplicate of bug 1736252, which is listed for the next 91 uplift.
We can reopen it if it's not fixed by then.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Attachment #9235019 - Attachment is obsolete: true
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Target Milestone: --- → 101 Branch

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/f146a3e57afd
Make the tooltips theme aware. r=aleca

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: