Open ian-cox opened 9 years ago
Has someone already implemented this functionality? I really could use it in my project.
+1 for this...
Wouldn't it be better to use the format option for this rather than opacity? So that you get actual rgba format in the field instead of hex + opacity?
It definitely would! I think MiniColor supports that but I never implemented it
It'd be super easy to add if you were already instantiating the call to the minicolor plugin. Since you're not, there's a bit more work that needs to happen :)
Replace the minicolors.js with the original script https://raw.githubusercontent.com/claviska/jquery-minicolors/master/jquery.minicolors.js
edit the line 38 to rgb edit the line 44 to true
Don't know if is the better way to achieve this but it works!!!
!!! = If you replace the whole file be sure the name is minicolors.js and not jquery.minicolors.js. If you want to use the second name change the line 15 in color.php
Pull request #19 adds support for opacity (rgba), as well as other features.
@ian-cox I believe it's safe to close this issue now! 👍
I would like to add RGBA functionality. MiniColor has this functionality built it, it's just a matter of making those options available to Kirby.