-
Notifications
You must be signed in to change notification settings - Fork 20
Color Scheme Simualation #129
Description
UX discussion for "Color Scheme Simulation" feature in DevTools
Summary:
Adds an option to simulate different color schemes allowing to test @prefers-color-scheme media queries. Using this media query lets your style sheet specify whether it prefers a light or dark user interface. This feature lets you test your code without having to change settings in your browser (or operating system, if the browser follows a system-wide color scheme setting).
Original bug:
- Bug 1550804 - Add color scheme simulation to the inspector
Introduced 4 states toggle button (null, no-preference, light, dark)
Meta:
- Bug 1137699 - Media query emulation
Bug for updating the tooltip:
- Bug 1606486 - Color scheme simulation tooltip should say "Cycle", not "Toggle"
Hidden behind a pref:
devtools.inspector.color-scheme-simulation.enabled
Others:
- Chrome has 3 states (seems to be clearer UI)
- Safari has 2 states (picking the opposite, default no-emulation)
Screenshot:
The goal should be to polish/simplify the UI (e.g. no-preference doesn't exist anymore)
@violasong @digitarald @martinbalfanz
We could also introduce a popup offering the state options
Honza

