What about gradient pngs using this module's functionality as integration with yours? http://drupal.org/project/imagene
The imagene specs just look for a path like this for the background image: sites/default/files/imagene/gradient/100-ffffff-eeeeee.png and magically creates the graphic and stores it in that folder. It works really well.
Here's a sample snippet of using that module with designkit below that creates a 100px tall png with top/bottom colors using php variables.
.header-group-wrapper { background: <?php print $gradient_bottom ?> url(/sites/default/files/imagene/gradient/100-<?php print substr($gradient_top,1) ?>-<?php print substr($gradient_bottom,1) ?>.png) repeat-x left top; }
I think this could be done fairly easily with your module by just creating a form option between the current "background" and "gradient background" and if gradient, creating 2 colorpicker fields (1 for top color and 1 for bottom color). I like the idea of your module better at the moment then designkit because of the ability to have presets and external stylesheets rather than page display output. Any interest?
Comments
Comment #1
btmash commentedI'm definitely open to the idea of gradients though I would prefer using css that won't create the png and require a user to download that.
Comment #2
apmsooner commentedMaybe this will provide some inspiration to do it the css way... http://www.colorzilla.com/gradient-editor/
I like the CSS idea also but just seems like it could be a little tougher to implement for cross browser functionality.