mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-12 17:45:49 +08:00
Change-Id: I004c4e24bbf44dad200d99099a4b743d9455b088 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1903469 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Adding new icons
- Use Inkscape 0.92 or newer.
- Choose an existing spritesheet, like
largeIcons.svgto add the icon to.
- Make sure to edit the
src/version of the svg!
- Open that file with Inkscape and import the new SVG into the document
- Place in an open spot, and use guides to scale the icon to a good size, relative to other icons
- Any straight lines should be snapped to the closest pixel value.
- Use the
Edit paths by nodestool (F2) to edit the path directly. - Tweak the X, Y values at the top to be integers.
- Use the
- Optimize SVGs:
./scripts/optimize_svg_images.py
- In
ui/Icon.jsadd an entry inUI.Icon.Descriptors.- Look at the spritesheet's axes to identify the correct grid position.
- You may want to regenerate devtools resources:
ninja -C ~/chromium/src/out/Release/ devtools_frontend_resources