Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
color.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2012 at 12:21 UTC
Updated:
29 Jul 2014 at 20:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Reg commentedJust found out that things are being done in Drupal 8.x and then getting back ported now.
Comment #2
joachim commentedI'm not quite sure what this does -- does it allow opacity to be controlled in the UI, or just preserve it if themes set it in their colour options?
A few code style points below:
Needs a full stop; parameters and return should be described.
Funny whitespace here.
14 days to next Drupal core point release.
Comment #3
Reg commentedLooks like I got a tab in there where there should have been a space, just remove it. I can't really rebuild the patch because I have other changes in the module now so the resultant patch wouldn't make sense.
What the code does is allow the color module to make shifts on CSS like this:
As you can see with gradients that have opacity as well you have this "rgba" format for the color. With this extra bit of code the module will shift that as well as the standard "#012345" format for representing color.
Comment #4
RunePhilosof commentedFixed some errors in the regex and made a diff against 8.x.
Also added some comments.
Comment #5
RunePhilosof commentedA port for Drupal 7.x.
Comment #6
markhalliwell#4: color-support_rgba-1392528-4.patch queued for re-testing.
Comment #7
markhalliwellIf we're going to do this, I (personally) would like a way to support also changing the opacity. I could be persuaded either way on this.
Comment #8
_12345678912345678 commented#4: color-support_rgba-1392528-4.patch queued for re-testing.
Comment #9
_12345678912345678 commentedRetested and it passed :)
Comment #10
Jeff Burnz commentedOh good lord, if this gets in I'll be a kid in a lolly shop, really, fantastic.
Comment #11
Reg commentedGuys, I'm not sure if it's worth working on this. We could probably depreciate this thread because I put this patch along with a few others I made to the color module all into one patch which other people have been keeping up to date for D8. The combined patch is over here: https://drupal.org/node/1763040 .
Sorry for the upset, I should have notice earlier.
Comment #12
mgiffordI think we should move this to #1763040: Accumulative patch of fixes and enhancements.