New alpha release with new UI and improved code

A new alpha release is out, download here: http://drupal.org/node/295520

The previous alpha release had some weird bugs I wasn't able to squash. I wasn't happy with how the module handled the icon set and icons data, and with the deadline fast approaching, I decided to rewrite those functions. At the same time, I made some improvements to other parts of the code, splitting some functions into smaller ones, generally adding more structure to the module. It now works very well, and I'm more comfortable with how it works under the hood.

The admin form has also been given a face lift, and looks now more like the Blocks form. Note that icon sets are not meant to be moved across the different sections. While it doesn't break if you do, I'm looking into fixing this.

The admin form's theme function has also been replaced by an icon-iconsets-form.tpl.php file.

There are now 3 things on my TODO list for the icon.module:

  1. Bind icon sets to their sections when dragging them in the admin form
  2. Remove the Global settings tab and defaulting to the active theme's tab (harder than I thought!)
  3. Get the curent theme's name in hook_init() without calling init_theme() prematurely (or, calling it from a more appropriate hook, where the theme has actually been initialized)

There are also some non-coding issues that are bugging me:

  • The lack of compehensive icon sets. And the comprehensive ones are usually aimed at desktop systems, not the web.
  • Icon sets with many sizes, but not all icons available in all sizes. This is very annoying when e.g. a theme asks for a 24x24 message-error icon and it's only available in 16x16 and 32x32.

Hopefully, some good icon set guidelines and eager icon designers will give us some great icon sets suitable for a web CMS.

AttachmentSize
Screenshot68.17 KB