ian-cox / Kirby-Color-Picker

A simple color picker field for the Kirby CMS
MIT License
86 stars 13 forks source link

RGBA functionality #2

Open ian-cox opened 9 years ago

ian-cox commented 9 years ago

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.

todo

gusmerolisara commented 8 years ago

Has someone already implemented this functionality? I really could use it in my project.

luxlogica commented 8 years ago

+1 for this...

Thiousi commented 8 years ago

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?

ian-cox commented 8 years ago

It definitely would! I think MiniColor supports that but I never implemented it

Thiousi commented 8 years ago

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 :)

mungle commented 7 years ago

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

luxlogica commented 7 years ago

Pull request #19 adds support for opacity (rgba), as well as other features.

luxlogica commented 7 years ago

@ian-cox I believe it's safe to close this issue now! 👍