Kirby-Color-Picker icon indicating copy to clipboard operation
Kirby-Color-Picker copied to clipboard

RGBA functionality

Open ian-cox opened this issue 10 years ago • 8 comments

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

ian-cox avatar Feb 20 '15 16:02 ian-cox

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

gusmerolisara avatar Mar 10 '16 07:03 gusmerolisara

+1 for this...

luxlogica avatar Jun 01 '16 07:06 luxlogica

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?

Thiousi avatar Aug 29 '16 22:08 Thiousi

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

ian-cox avatar Aug 29 '16 22:08 ian-cox

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

Thiousi avatar Aug 29 '16 22:08 Thiousi

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

mungle avatar Jan 02 '17 20:01 mungle

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

luxlogica avatar Nov 09 '17 06:11 luxlogica

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

luxlogica avatar Nov 12 '17 22:11 luxlogica