On Thu, May 10, 2018 at 12:24 PM, Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
wrote:
I was able to compile my addon and is working fine. Thanks to Adrien.
I also created a Makefile for easy installation.
The string is the icon in the HVIF format. You should be able to convert
simple svg images into hvif using Icon-O-Matic which is included in Haiku.
I say simple because the Haiku Vector Icon Format is designed to be
lightweight so not all svg constructs may be translated.
You can try to do the same thing using Wonderbrush.
Once you get your icon imported just export in rdef format from
Icon-O-Matic, that'd be exactly the string you put in your addon rdef.
I did convert a svg image to hvif rdef using Icon-o-matic. And used it in
.rdef file. But the icon is not being shown in addon menu.
The icon is https://github.com/Hrily/TrackGit/blob/master/git.svg
The rdef icon is https://github.com/Hrily/TrackGit/blob/master/git.rdef
The addon rdef is https://github.com/Hrily/TrackGit/blob/master/TrackGit.
rdef
The Makefile is https://github.com/Hrily/TrackGit/blob/master/Makefile