Hi again,

I have been going through the styles.css but I am having trouble figuring out how to change the body bg color? The theme configuration does not let us do this.

The color starts from "whatever you selected" - lets say pink and it shades softly into white. How can I swap the white with some other color or make it all one color?

I was searching for some RGB functions in both the PHP and CSS files but I failed to find them.

Cheers,

Comments

Mark_J’s picture

I don't know what I was thinking when I posted this question as I have done a lot of CSS in the past. I just hadn't done anything recently. The section that takes care of this is the class .pixture_reloaded {} - it specifies bg color and a bg picture. However I still can't figure our how the automatic color generation is done.

Jeff Burnz’s picture

Color generation is done with the color.module, check out the the color.inc file in PR and look at base.png, combine with style.css and theres the magic.

Jeff Burnz’s picture

Status: Active » Closed (fixed)
Annakan’s picture

Title: How to change the body background color from white to something else? » How to change the body background color from white to something else? (Banging my head on it :( )

Hello

Thanks a lot for your time and dedication to the drupal community.

I am banging my head on the color module and that so so so so simple issue (well it seems at first) of changing the WHITE background to another uniform color.

I know I don't really get the color module, I get in in broad strokes, the principles and such but I can't figure how it work precisely.
There is so many transformations from the background image to the style.css parsing that in the end the cause and the effect still seems remote to me. Not being an "artist" and having only vague notion of color and transparency, layers and all the gimp/photoshop machinery does not help either.

In the end I can't figure why the "corner's picture" stay in a white background.
I even changed the 'blend_target' in the color.inc file, understanding it was the color against the picture elements were cropped but to no avail....

The next why for me is "why is the background of such images not made transparent once and for all : that would remove all the special generation for them no ?

I don't get WHERE the "white" background is defined, but I have a hunch it is something deep inside the color module since every color module based theme I have seen so far have a white background ...

I would appreciate some pointers if you could mind the time ...

PS: I did read all I could find on the color module but most explanations are vague in my book, not defining what "base color" or "fill color" are, and not telling WHERE it is defined, I am lost (in case it was not clear :) ).

Thanks a lot for your time.

Annakan’s picture

Status: Closed (fixed) » Active
ronline’s picture

Title: How to change the body background color from white to something else? (Banging my head on it :( ) » The page color can be changed in style.css

The page color can be changed in style.css id page line 28.
You might also want to change the content area on line 371.
If the changes still doesn’t appear go to the theme settings page and save the theme settings again, so you changes are written to the files folder.

The white corner are images, for the blocks :
images/block-tl.png
images/block-tr.png

S3m1Sane’s picture

Hi guys

I have been unable to change my node background color with the css on:
line 25 @ "#page",
line 369 @ "#content-area .node" and further down at
".node-full-view .node .content "

Is there another place where this is possibly getting over-ridden as i have combed through the style.css and checked that files/color/pixture_xxxx/style.css are updating after re-saving the theme (which they are but my node bg stays white.)

I have also checked color.inc but only find a handle for the reference colour which should be white.

Any guidance would be greatly appreciated, thanx!

S3m1Sane’s picture

The only other thing i can think of is changing the base.png --> is that correct? I unfortunately do not have fireworks and lose the slices in photoshop so before i go out and buy fireworks i should like to confirm that.

geoandrew’s picture

I was having a similar problem. Good documentation can be found in the theme guide under Integrating color module -> http://drupal.org/node/108459.

If you make changes and they dont seem to do anything, delete the created .css file in the files/
subdirectory and then re-save your them config.

HTH...Andrew

Jeff Burnz’s picture

This problem is completely solved in the Drupal 7 version, mainly because in D7 we can have many more color settings, but in D6 we are very restricted to just a few, which means its basically impossible to give an option to change this, and doing it via CSS is the only real way, I would have to seriously rethink and rebuild the theme to make this work (say by shifting against the base color), but even then its going to be very hard and I can't guarantee it will work that well.