Skip to content
Yoann Gini edited this page Jul 12, 2018 · 2 revisions

Most function should support images to display before the title label in the Hello-IT menu.

To use this feature, two options are available.

PNG file with support for the dark mode

The recommended option is to use the imageBaseName into the settings dictionary provided to the function. The value of this option will be the name (minus the extension) of a PNG file located in /Library/Application Support/com.github.ygini.hello-it/CustomImageForItem.

Using this option, you can also provide a -dark variant to provide a different image when the user is in dark mode.

To make it clear, if imageBaseName is set to myImage, Hello-IT will use /Library/Application Support/com.github.ygini.hello-it/CustomImageForItem/myImage.png or /Library/Application Support/com.github.ygini.hello-it/CustomImageForItem/myImage-dark.png.

The dark version is optional, it will be used if here and will fallback on the normal one if not.

Image path

Another key, imagePath is available and can be used to provide a full path of any kind of image, located anywhere on the system, but this does not support the dark variant.