Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
color.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
27 Nov 2006 at 19:47 UTC
Updated:
11 Jan 2007 at 05:38 UTC
I'm looking into the code for color.module, and it seems very directed at the Garland theme. The only colors that can be defined are Base Color, Link Color, Header Top, Header Bottom, and Text Color. It's very directed, which goes against the whole idea of drupal in my mind. It should be usable by all themes.
I think the theme ought to define what the titles are for the theme in the color.inc file. It really shouldn't be limited to only 5 colors either.
Comments
Comment #1
bradlis7 commentedWell, it seems like the color module has a lot of things that keep it from working with other themes (I think it requires at least one image to be generated). Is there going to be documentation on how to get it working, or will there eventually be more work done on the project to make it work with other themes?
My theme only needs a color selector. The only real image is the logo, and that's the way it is with many of my themes. Can we at least get it working to where no images are required, and then documentation on how to do so?
Many Thanks.
Comment #2
bradlis7 commentedComment #3
bradlis7 commentedSorry, I just wanted to make it clear.
Comment #4
dodorama commentedI would like some directions, too.
Comment #5
Tresler commentedI've been working on this for a bit now and I just got it working with another theme. My next step (maybe before the weekend will be to write up a HowTo for integrating this module with themes. If someone else wants to steal this task, feel free, but if not, I'll attach the Howto here soon.
Until then, this might get you started.
Copy this into template.php
Replace the base.png file with one of your choice.
Edit color.inc to reflect your base.png
Include any color schemes you want in color.inc as well.
More to come.
Comment #6
Tresler commentedStrike that. Here it is http://drupal.org/node/108459