Custom Icon Library in 8.3

Okay, here's the current steps.

  1. Navigate to your install directory, and in the /data/config/resources/core/ folder, create a new folder com.inductiveautomation.perspective/ (if it doesn't already exist).

  2. Within that folder create an icons/ folder.

  3. Within that folder create a <repository name>/ folder.

  4. Within that folder, create:

    • The spritesheet of your SVG, at whatever arbitrary filename you want, e.g. icons.svg.
    • A config.json file that contains a single entry, svgFileName, that contains the same name (icons.svg or whatever else you chose)
      {
       "svgFileName": "icons.svg"
      }
      
    • A resource.json file that references both config.json and your custom icons SVG:
      {
          "scope": "A",
          "version": 1,
          "restricted": false,
          "overridable": true,
          "files": [
              "config.json",
              "icons.svg"
          ],
          "attributes": {
          }
      }
      
  5. Restart the gateway (or POST the /data/api/v1/scan/config endpoint) to pick up the changed resource.

3 Likes