Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be quite awesome if this theme's colors could be changed using color.module - the colors that would need to be changeable are:
- Menu highlight / line (default is blue)
- Link color (similar blue)
- Text color (defaults to black)
- Line at bottom of page (default is blue)
Maybe other colors too? Site title?
Comment | File | Size | Author |
---|---|---|---|
#4 | make-theme-colorable-1351050-4.patch | 4.43 KB | geerlingguy |
Comments
Comment #1
geerlingguy CreditAttribution: geerlingguy commentedI'm following along with this nice guide to including a color.inc to integrate my theme with color.module. Hopefully will have some integration by the end of this evening.
Comment #2
geerlingguy CreditAttribution: geerlingguy commentedAlmost everything is complete, at least at the initial stage: http://drupalcode.org/project/parish_theme.git/commit/c2e1947
I still need to get the preview working well; I think Bartik may use its own JS file to change the colors of the actual preview image, so I'll take a look at that next.
Comment #3
geerlingguy CreditAttribution: geerlingguy commentedAnother quick post on color module integration, specifically with JS mention: http://mearra.com/blogs/sampo-turve/becoming-friends-drupal-color-module...
Comment #4
geerlingguy CreditAttribution: geerlingguy commentedSo, at DrupalCon, spent a bit of time looking over how Bartik works around some of the stranger bits of color.module theme integration, and I found a few little oddities I had to take into account:
:hover
selectors, you have to use jQuery's.hover()
function to set the color for the hover, then also set the color back to what it should be after hover is over.Anyways, here's a patch for this. About to commit to -dev, then I may start doing some testing in preparation for adding these into the next release of Open Parish :D
Comment #5
geerlingguy CreditAttribution: geerlingguy commentedCommitted: http://drupalcode.org/project/parish_theme.git/commit/e801233 - woot!