Parameters for themes?

mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2004-01-04 23:30

I see that a layout can have parameters; what about themes?
I'm asking because G1 albums can set things like background color, font/link color.. these are presentation details, but it seems a bit much to make a new theme for every color combination used. A theme that could set these colors as parameters would be useful in migration of G1 albums. (I haven't tried the migration tool in G2 yet, so I'm not sure what it does)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2004-01-05 07:27

Right now themes can't have settings, but there's nothing to stop us from adding them in the same way that we added settings to layouts.

As I mentioned in another thread, w're migrating over to a model where the theme is going to devolve into just a CSS file which will be easier for graphic artists, but it also means that we're going to lose the spot where we could hang code to specify settings. Probably the easiest thing to do will be that (after we get to that point) we can allow advanced theme developers to introduce their own theme.inc which specifies what settings the theme supports; then you can generate the CSS file using PHP instead and use color/font/etc settings from the theme settings instead of hardcoded ones.

This'll have to wait until after we've done the theme re-org, but it's definitely doable.