On Sun, Nov 04, 2007 at 09:47:08PM +0100, Frank Barknecht wrote:
Hallo, ilya .?? hat gesagt: // ilya .?? wrote:
The file "theme_from_commandline" would just need to specify variables in tcl-syntax:
set theme_bgcolor grey set theme_bwidth 2 ...
that's what i was just meaning at the top of the thread somewhere .
Yes, sorry, I missed that. Anyway my main point is the hook to load a complete theme file from a user option, instead of hardcoded themes.
sure. i 'm probably not very good at delivering my ideas to public anyway ;)
do you think massively increasing the amount of variables won't cause ANY interpreter slowdown ? .. may be some 'unset' procedure should be done after new canvas was created with '-background $theme_canvbg' - do 'unset theme_canvbg' ..it's a common practice in the shell scripts, regardless of the general sizeof it.
i reckon it has to be embedded into the pd.tk script.
there are may variables which are used many times, but many are still just used once.