Closed Bug 1757506 Opened 4 years ago Closed 4 years ago

Poor contrast for theActive tab with system dark theme on Linux

Categories

(Firefox :: Theme, defect)

Desktop
Linux
defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox97 --- unaffected
firefox98 --- unaffected
firefox99 --- wontfix
firefox100 --- verified
firefox101 --- verified

People

(Reporter: sdk, Assigned: emilio)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(2 files, 1 obsolete file)

Attached image ff-active-tab.png —

The active tab background color has a color to close the to tabbar background color. This makes it hard to see which tab is active.

This is a regression introduced by https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=fc09cf8d7c91553b71d8e83d4118fa6be3287ac8&tochange=771fc3e75f1e6c5636f42d3c5df0091bb04ff06e

To fix both bug 1741293 and this issue, I propose that we use the previous background color value only for the active tab while keeping the new background color value for the toolbar. This solution is similar to the one implemented with the firefox dark theme.

Flags: needinfo?(emilio)
Regressed by: 1741293

Set release status flags based on info from the regressing bug 1741293

This is on Adwaita dark? If so this was kind of intentional.
I don't see why the toolbar would need less contrast than the active tab or vice versa, but I don't have strong opinions either way. 301 Dao, though I'm happy to write the patch with whatever approach he prefers.

Component: Widget: Gtk → Theme
Flags: needinfo?(emilio) → needinfo?(dao+bmo)
Product: Core → Firefox

I guess it'd be more consistent with the regular dark theme this way. I never noticed that the regular dark theme did this. Will send a patch.

Assignee: nobody → emilio
Has Regression Range: --- → yes

This is closer to what the standard lwt dark mode does, and seems fair
enough. I don't mind much either way so if you feel strongly about it
lmk.

This is on Adwaita dark?

Yes.

I don't see why the toolbar would need less contrast than the active tab or vice versa

bug 1741293 was trying to fix a different contrast issue with the download icon in the toolbar not having enough contrast vs. the toolbar background color. The solution was to use a darker background color. However, it also changed the background color for the active tab.

Another solution would be to revert bug 1741293 and instead of using a darker color for the toolbar background, we use a lighter blue color for the download icon in the toolbar. That way both the toolbar and active tab will have the same background color.

Emilio: Do you think we should land the patch and uplift to beta, or back out the original patch on beta?

Flags: needinfo?(emilio)

I don't have a strong opinion either way (I don't have a strong opinion on the patch to begin with, I use the theme and contrast seems enough for me, but the concern seems fair of course). So 301 Dao.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/be157bc98d0b Restore selected tab background image. r=dao

GTK3 doesn't have accent colors per se so we reuse the "selected item"
colors.

However, GTK4 does, and dark and light accent colors in libadwaita are
the same, so special-case Adwaita to copy the colors from the light
theme.

Attachment #9271092 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Comment on attachment 9265859 [details]
Bug 1757506 - Restore selected tab background image. r=dao

Beta/Release Uplift Approval Request

  • User impact if declined: See comment 0
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Activate a dark system theme and compare toolbar and active tab colors with the image in comment 0
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Pretty straightforward CSS fix
  • String changes made/needed:
Flags: needinfo?(dao+bmo)
Attachment #9265859 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9265859 [details]
Bug 1757506 - Restore selected tab background image. r=dao

Approved for 100.0b3

Attachment #9265859 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Reproduced the issue on release 99.
Verified - Fixed in latest Nightly 101.0a1 and Beta 100.0b3, using Ubuntu 20.

QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: