Closed Bug 1608648 Opened 6 years ago Closed 5 years ago

Apply prefer-colors-scheme

Categories

(DevTools :: Shared Components, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1505090

People

(Reporter: bugzilla.mozilla.org, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

When having a dark theme in the OS, Firefox correctly applies any @media (prefers-color-scheme: dark) rules on websites, in other words: makes websites appear dark too. Examples: duckduckgo.com and bugzilla.mozilla.org.

Actual results:

The devtools do not turn dark, even though there is a dark theme available.

Expected results:

The devtools should also turn dark, if dark mode is prefered

@ ladybenko can you please assign me this task. I am working on it.

Flags: needinfo?(balbeza)

(In reply to Milek Agrawal from comment #1)

@ ladybenko can you please assign me this task. I am working on it. Also can you please guide me on how to find the code snippet related to an issue in searchfox.org.

Pinging Victoria, because I'm not sure if we actually want to do this. And if we do, we need to think what to do about the theme radio buttons in settings (maybe add a "OS default" option?).

can you please guide me on how to find the code snippet related to an issue in searchfox.org.

Milek, I'm not sure what are you asking exactly. Searchfox has a top searchbox in which you can search for fragments of code. On the right side, you will find another input to filter by file path (i.e. typing devtools there will narrow the results to mozilla-central/devtools)

Flags: needinfo?(balbeza) → needinfo?(victoria)

@ladybenko why would you not want to do this? I understand that it does not work yet because the devtools had their own theme management, because lots of devs prefer dark backgrounds in general, and the demand for occasional switching between dark and light UI themes is rather new for most users. But an active decision to not have the devtools UI behave in sync with the rest of the browser UI would feel strange to me.

I agree on the proposal to have an "OS default" radio button set as the default.

Sorry for the delay in responding!

So, I see that if you're on the Default Firefox theme in MacOS, the browser UI does change to dark based on OS change. (If Light or Dark themes are specified, they remain unchanged.)

An extra radio button for "OS default" seems good to me. We can default to this in Stable/Nightly, but in DevEdition I think we'd still default to Dark.

CCing Harald in case he has thoughts.

Flags: needinfo?(victoria) → needinfo?(hkirschner)

If I am not missing something, this is the same discussion as bug 1505090, right?

Flags: needinfo?(hkirschner)

(re-open in case this covers some more specific aspect)

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Component: CSS and Themes → Shared Components
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: