Files
react-native-devtools-frontend/front_end/Images
Paul Lewis b47c6e25f9 [CSS Overview] Adds icons to headings
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>
2019-11-07 12:22:05 +00:00
..
2019-11-07 04:02:56 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00
2019-06-10 23:19:12 +00:00

Adding new icons

  1. Use Inkscape 0.92 or newer.
  2. Choose an existing spritesheet, like largeIcons.svg to add the icon to.
  • Make sure to edit the src/ version of the svg!
  1. Open that file with Inkscape and import the new SVG into the document
  2. Place in an open spot, and use guides to scale the icon to a good size, relative to other icons
  3. Any straight lines should be snapped to the closest pixel value.
    • Use the Edit paths by nodes tool (F2) to edit the path directly.
    • Tweak the X, Y values at the top to be integers.
  4. Optimize SVGs:
  • ./scripts/optimize_svg_images.py
  1. In ui/Icon.js add an entry in UI.Icon.Descriptors.
    • Look at the spritesheet's axes to identify the correct grid position.
  2. You may want to regenerate devtools resources:
    • ninja -C ~/chromium/src/out/Release/ devtools_frontend_resources