[GSoC 2023] Plans for improving Icon-O-Matic
Icon-O-Matic is the editor for HVIF files, the format that Haiku’s icons are in. It’s a relatively simple but impressive aplication. It does have room for improvement, however.
There are three things I am planning to do during GSoC: fix bugs, refactor the code, and improve the UI. There is a list of known bugs that Icon-O-Matic has over on Trac. You can help, too, by reporting bugs in Icon-O-Matic over there. Less obviously, you can also vote for tickets that you would like to be resolved. To do this, click on the ticket that interests you, then click one of the buttons highlighted by the arrow:
My current plans
Here are the plans that I currently have. As with all plans, they are subject to change.
Add reference images
Add previews to shapes
Being able to see how a shape looks can help speed up navigation significantly.
Improve conversion from SVG to HVIF
This would allow using more complete tools like Inkscape to create the vector files. This one is tentative. I haven’t looked into whether this can be improved much, and it is likely a very hard problem since SVGs are a very complicated format.
Allow grouping shapes
Being able to group shapes would be helpful in organizing them.
Switch the code to using
BReferenceable is used directly. This has the potential to lead to bugs when one forgets to acquire/release the reference. This is the source of one of the bugs I fixed in https://review.haiku-os.org/c/haiku/+/6182.
Get code out of the Icon library
Currently, Icon-O-Matic’s source is split across two directories: src/apps/icon-o-matic and src/libs/icon. The latter is the icons library. It is, however, littered with
#ifdef ICON_O_MATIC’s, which isn’t very appropriate for a library to do!
I plan on working on bugs approximately in order of importance. This means bugs that are highly upvoted, on the roadmap for R1, or otherwise feel important will get worked on first.
A big thank you to Google for hosting GSoC and all the work they put into it. Were it not for them, I would not be here today. I would also like to thank my mentors, PulkoMandy and Humdinger. Looking forward to working with you!
- [GSoC 2023] Improving Icon-O-Matic Final Report
- [GSOC 2023] Progress on perspective transformation
- [GSoC 2023] Next up: Add reference images
- [GSoC 2023] First course of action: fix memory leaks
- How to find memory leaks
- The Icon Sets Proposed in the Icon Contest
- [GSoC 2023] Plans for improving Icon-O-Matic