-
-
Notifications
You must be signed in to change notification settings - Fork 233
Redesigned color picker widget #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Added ability to allow or disallow custom colors - Made picker more usable and match up to the input - Picker shows when input is focused - Added additional format support
|
Something seems off about the font, is that the default font? Maybe we should use a mono space font instead |
|
@LukeTowers yeah it's the default body font. I'll change it to monospace. |
|
Could we also provide |
|
@LukeTowers multiple format support has been added. |
If available colors are specified on a particular color picker, those will be used instead.
|
Is there a docs PR for the changes? |
|
@LukeTowers not yet - I'll put one through shortly. Any further thoughts on this, as it is ready to merge? |
modules/backend/formwidgets/colorpicker/partials/_colorpicker.htm
Outdated
Show resolved
Hide resolved
modules/backend/formwidgets/colorpicker/assets/js/colorpicker.js
Outdated
Show resolved
Hide resolved
* develop: (25 commits) Support embedded data URIs in the list image column type Make some adjustments to the readme content Update banner in readme Add new GitHub banner Documentation with icons (#347) Limit options shown in group filter, apply scope when retrieving filtered options Add Exception on wrong relation type in relation formwidget (#334) Redesigned color picker widget (#324) Add winter:test command (#202) Use the correct backend timezone config key (#337) Get changelog only of the current branch Fix Markdown editor sizing issue on Chrome. Check overrides for parent locale when compiling language files (#242) Fixing commas in English translation files (#305) Added Latvian translations for Allowed IP messages (#304) Add missing filter translations (#303) Clean up newlines Update Russian language (#302) Fix issue present in overriding RelationController partials using the default code Maintenance Allowed IP list (#147) ...
This PR introduces a newly redesigned color picker widget, built on top of the Pickr UI widget as opposed to Spectrum, which has not seen a release since 2016.
Benefits
New config options
cmyk,hex,hslandrgb. Specifyingallas a string will allow all formats. Defaults tohex.false, only the colors specified inavailableColorswill be available for selection. The color picker palette will be disabled. Defaulttrue.Notes