From: Jeff H. <je...@ac...> - 2009-02-10 23:39:42
|
On 10-Feb-09, at 3:35 PM, Andreas Kupries wrote: > Jeff Hobbs wrote: >> Another couple of thoughts on this ... plugin-like would be similar >> to themes and how we can add themes to Ttk. > > Hm ... Ttk allows switching themes on the fly, at runtime, right ? > That could actually be handled ... The 'icon-theme' package would > have to remember the images it handed out to the app, and the > associated general icon names ... Switch the theme, go through the > remembered images and reload their content ... Note that Tk handles this already through named images. You just change it with [$img configure -file ...] and Tk does the updating for all widgets using -image $img. >> 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, ...). > > GSoC project ?! Good idea. Jeff |