ColorPicker icon indicating copy to clipboard operation
ColorPicker copied to clipboard

Quick select presets

Open jonapoul opened this issue 3 years ago • 1 comments

By adding app:cpv_selectOnClick="true" to the XML declaration, you can now enable single-tap selection of colours in a preset window. If this is enabled, the "SELECT" dialog button is replaced by a "CANCEL" button to dismiss the dialog. Note that the included translations for this new button are ripped straight from Google Translate, I fully expect there to be issues with these.

Of course if you intend on using any more complex functions (alpha scale, colour shading, custom colour-picking, etc.) this option is not for you, this is just for choosing from a restricted selection of colour presets.

I only did this for my own uses and thought it might be a neat option to include in the main repo.

jonapoul avatar Nov 07 '20 13:11 jonapoul

New user of this library here. Any plans to include this on the library? It seems a nice option for cases where you don't need alpha transparency, etc., and just to allow the user to quickly select a color.

XamDR avatar Jan 29 '21 23:01 XamDR