From: Jeff H. <je...@ac...> - 2009-02-10 23:17:19
|
On 10-Feb-09, at 3:08 PM, Andreas Kupries wrote: > Jeff Hobbs wrote: >> My preference would be a more general icons package that supported >> multiple sets of icons, perhaps starting with famfam. This would >> be like the tklib style package, with substyles. >> So you have something more like: >> package require icons >> set groups [icons::get groups] ; # or packages or something >> => famfam kdeicons ... >> set group famfam >> set icons [icons::list *arrow* ?$group?] >> ... >> Where the grouping can be done by some ordering of directories >> with files of matching known image format types. > >> Mind you, I don't have time to write this, so it's just an idea ... > > Your idea seems to exist on the level above of what I threw together > on the quick. > > I wanted simple physical access, and you seem to be building icon > themes on top. Where an abstract icon name exists across all themes, > and each theme maps that it proper physical icon. > > Although from your description it could also be a general physical > access. One package, configured with path(s) to icon master > directories, or having them as siblings, and automatically picks up > a new 'group' when a sub-directory is made for it in a master, and > filled. > > Ok, more meditation required ... might be possible to get something > like this in an incremental fashion. Plugin-like ... Another couple of thoughts on this ... plugin-like would be similar to themes and how we can add themes to Ttk. On that note as well, it might be nice as an enhancement to devise a "standard" set of icons that each "icon theme" would represent, though they could have many more than the standard. Similar to font and font families (icon families ??), and our use of TkFontFixed, TkFont... but for icons it would be "file", "dir", "open" ... maybe not an immediate feature, but do consider our existing core facilities that have similar ideas and apply them (Ttk themes, fonts, ...). Jeff > > >> Jeff >> On 10-Feb-09, at 12:31 PM, Andreas Kupries wrote: >>> Requesting review of a new module for tklib, before committing. >>> >>> Sources available at >>> ftp://ftp.tcl.tk/pub/incoming/tklib-famfam.tgz >>> (Can't put up on SF, they limit attachments to 256 KB, this file >>> is 2 >>> MB compressed (6 MB uncompressed)). >>> >>> A module containing 2 packages wrapping around the silk and flags >>> icon sets of >>> famfam, to make their use in tcl apps easier. Just require the >>> package, then >>> load an icon/image by name. >>> >>> >>> Examples of use >>> package require famfam::silk >>> set arrows [famfam::silk list *arrow*] >>> set rotccw [famfam::silk get arrow_rotate_anticlockwise] >>> >>> package require famfam::flags >>> set dubya [famfam::flags list w*] >>> set wales [famfam::flags get wales] >>> >>> >>> Ideas for the future >>> - Commands to generate packages containing a subset of the icon set. >>> - With the icons hardwired into the package code (base64 encoded). >>> => Deployable as Tcl Module. >>> - With the icons in a subdirectory as for the original package. >>> - With the icons attached to the base tcl code (virtual fs). >>> >>> >>> Andreas. >> |