Closed Bug 1949433 Opened 9 months ago Closed 17 days ago

[Win][HCM] Declaration checkbox toggle not visible with Windows Desert contrast theme and Firefox Dark theme

Categories

(DevTools :: Inspector: Rules, defect, P3)

x86_64
Windows 10
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: calixte, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It's a really annoying bug.

Attached image image.png

The root cause of the problem is having enabled the Dark theme from the Themes setting in about:addons.
If I disable it then everything is fine.

Setting the Dark theme in about:addon makes the panel get the theme-dark class, which is used in different place in the codebase (here, for setting the stroke color of the checkbox, and since it's set to a light color because of theme-dark, it's not visible against the light background we get from the Desert theme)

We get the "dark" theme from https://searchfox.org/mozilla-release/rev/201ece97e589a880d0b3f000affc9bf459e90cee/devtools/client/shared/theme.js#15

return Services.appinfo.chromeColorSchemeIsDark ? "dark" : "light";

Here, in Desert HCM with Firefox dark theme selected, Services.appinfo.chromeColorSchemeIsDark is true

Severity: -- → S3
Priority: -- → P3
Depends on: 1988629

It looks like this was fixed by Bug 1988635
Calixte, could you check on latest central if that works for you to?

Depends on: 1988635
No longer depends on: 1988629
Flags: needinfo?(cdenizet)
Summary: [Win][HCM] The chekboxes aren't visible when hovering some rules with Desert contrast theme → [Win][HCM] Declaration checkbox toggle not visible with Windows Desert contrast theme and Firefox Dark theme

Yep it wfm.

Status: NEW → RESOLVED
Closed: 17 days ago
Flags: needinfo?(cdenizet)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: