mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 12:01:40 +08:00
preference color shortcut feature This CL 1. Add "Rendering" Shortcuts section in setting. 2. Add 'Toggle forces CSS prefers-color-scheme color' shortcut feature. User able to set shortcut, to use it to toggle CSS prefer color scheme How to test: (video record covered all steps) 1. Go to https://twitter.com/ 2. Open devtools -> Settings -> Experiments -> filter "key" word -> enable "Enable keyboard shortcut editor" 3. Reload devtools 4. Go to devtools Settings -> Shortcuts -> find "Rendings" secion -> set "Toggle force CSS ..." shortcut 5. Execute shortcut and check twitter's UI screenshots: - https://imgur.com/a/GCeyVB2 video record - https://youtu.be/Mx9gqvIzIzU Bug: 1280398 Change-Id: I9f69a46705d167bc1e1a17f8bfbe3582af8468aa Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3614398 Commit-Queue: Changhao Han <changhaohan@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org> Reviewed-by: Changhao Han <changhaohan@chromium.org>