[haiku-development] Re: Trouble loading LibGit2 library

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 10 May 2018 19:03:01 +0200

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


I think you added a dynamic menu for add-ons which is separate from the
usual "Add-ons" menu. Correct me if I'm wrong.

If that's the case then you have to add the code to draw the icon in the
Menu.

Bye,
Dario

Other related posts: