tree: 633fe694d336b34e91ae342f34aa0a46bcfecd11
  1. src/
  2. accelerometer-back.svg
  3. accelerometer-bottom.png
  4. accelerometer-front.svg
  5. accelerometer-left.png
  6. accelerometer-right.png
  7. accelerometer-top.png
  8. baseline-icon.svg
  9. breaking_change_icon.svg
  10. BUILD.gn
  11. checkboxCheckmark.svg
  12. checker.png
  13. chevrons.svg
  14. chromeDisabledSelect.png
  15. chromeDisabledSelect_2x.png
  16. chromeLeft.avif
  17. chromeMiddle.avif
  18. chromeRight.avif
  19. chromeSelect.svg
  20. chromeSelectDark.svg
  21. cssoverview_icons_2x.avif
  22. dropdown_7x6_icon.svg
  23. elements_panel_icon.svg
  24. error_icon.svg
  25. errorWave.svg
  26. feedback_thin_16x16_icon.svg
  27. flex-align-content-center-icon.svg
  28. flex-align-content-end-icon.svg
  29. flex-align-content-space-around-icon.svg
  30. flex-align-content-space-between-icon.svg
  31. flex-align-content-space-evenly-icon.svg
  32. flex-align-content-start-icon.svg
  33. flex-align-content-stretch-icon.svg
  34. flex-align-items-center-icon.svg
  35. flex-align-items-flex-end-icon.svg
  36. flex-align-items-flex-start-icon.svg
  37. flex-align-items-stretch-icon.svg
  38. flex-align-self-center-icon.svg
  39. flex-align-self-flex-end-icon.svg
  40. flex-align-self-flex-start-icon.svg
  41. flex-align-self-stretch-icon.svg
  42. flex-direction-icon.svg
  43. flex-justify-content-center-icon.svg
  44. flex-justify-content-flex-end-icon.svg
  45. flex-justify-content-flex-start-icon.svg
  46. flex-justify-content-space-around-icon.svg
  47. flex-justify-content-space-between-icon.svg
  48. flex-justify-content-space-evenly-icon.svg
  49. ic_checkmark_16x16.svg
  50. ic_delete_filter.svg
  51. ic_delete_list.svg
  52. ic_info_black_18dp.svg
  53. ic_page_next_16x16_icon.svg
  54. ic_page_prev_16x16_icon.svg
  55. ic_redo_16x16_icon.svg
  56. ic_show_node_16x16.svg
  57. ic_suggest_color.svg
  58. ic_undo_16x16_icon.svg
  59. ic_warning_black_18dp.svg
  60. largeIcons.svg
  61. lighthouse_logo.svg
  62. link_icon.svg
  63. mediumIcons.svg
  64. navigationControls.png
  65. navigationControls_2x.png
  66. network_panel_icon.svg
  67. node_search_icon.svg
  68. nodeIcon.avif
  69. OWNERS
  70. popoverArrows.png
  71. profileGroupIcon.png
  72. profileIcon.png
  73. profileSmallIcon.png
  74. radioDot-dark-theme.png
  75. radioDot.png
  76. readme.md
  77. refresh_12x12_icon.svg
  78. resizeDiagonal.svg
  79. resizeHorizontal.svg
  80. resizeVertical.svg
  81. resourceCSSIcon.png
  82. resourceDocumentIcon.png
  83. resourceDocumentIconSmall.png
  84. resourceJSIcon.png
  85. resourcePlainIcon.png
  86. resourcePlainIconSmall.png
  87. resourcesTimeGraphIcon.avif
  88. searchNext.png
  89. searchPrev.png
  90. securityIcons.svg
  91. settings_14x14_icon.svg
  92. smallIcons.svg
  93. speech.png
  94. toolbarResizerVertical.png
  95. touchCursor.png
  96. touchCursor_2x.png
  97. treeoutlineTriangles.svg
  98. warning_icon.svg
  99. whatsnew.avif
front_end/Images/readme.md

Adding new icons:

  1. Out of a spritesheet (if you have a separately saved icon already go to 2.):

    • Open a spritesheet with the icon of interest, like largeIcons.svg in Inkscape.
    • Make sure it's the src/ version of the spritesheet.
    • Copy-paste the icon to a new page. Make sure it preserved its original size and aspect ratio, and isn't otherwise altered.
    • To make sure step (3) below doesn't destroy the icon, it might be necessary to resize it. Just select everything and use the elements in the top toolbar to resize the icon (make sure the aspect ratio is preserved).
    • Set the size of the page to match the icon. You may use Inkscape's Edit>Resize Page to Selection command to accomplish this.
    • If you chose to include padding in the icon, make sure the icon is centered within the page.
    • Save the icon with _icon.svg suffix. For instance list_icon.svg.
  2. Add respective entries to .gni files.

    • Update the devtols_image_files list in devtools_image_files.gni.
    • Update the grd_files_release_sources list in devtools_grd_files.gni.
  3. Optimize:

    • ./scripts/optimize_svg_images.py.
    • This script produces, for example, Images/list_icon.svg from Images/src/list_icon.svg by rounding numbers and removing hopefully unnecessary content. However, it might end up distorting/destroying the icon, especially if it is too small. Make sure to open the output of the optimiztion process (e.g. Images/list_icon.svg) in Inkscape and inspect it for damage. Enlarging the input image, as desribed in step (1) usually circumvents this.
  4. Use Icon component in the DevTools front-end: