Joomla-cms: [com_fields] Feature Request for Colour field

Created on 5 Mar 2017  路  23Comments  路  Source: joomla/joomla-cms

In the Colour Field it麓s only possible to select Hex values. Would be great to have the possibility to select also rgba and define this in the plugin settings.

image

New Feature No Code Attached Yet

Most helpful comment

There is an existing option with the color field to set to an RGBA format... https://github.com/joomla/joomla-cms/pull/10129

All 23 comments

@maintaners: at this Point this kind of issue should get a Label "Enhancement" for 3.8 to have Energy on getting 3.7 solid and out.

Guess this would require a new color field.

There is an existing option with the color field to set to an RGBA format... https://github.com/joomla/joomla-cms/pull/10129

I would not close this one as the pr #14427 does default the $changeFormat field to false. So this must be activated in the color custom field then explicitly, which needs a code change.

@laoneo
I do it in that way because extensions which use only hex format and parse it, could crush when you try to set rgb or rgba format. It's suggestion from @Bakual (see comments in pr) and I agree with him :slightly_smiling_face:

@jjaracz that's absolutely fine. But to properly integrate it into com_fields, we need to make some code changes in the color custom field plugin. That's why this issue will not be solved when your pr got merged. There is then still work needed on the com_fields side. That's why this issue should stay open.

@laoneo
You mean to add to the settings option which would show buttons to change between formats ? extensions could crush, what i mention before.

extensions could crush, what i mention before.

We are talking about a custom field here, not an extension setting (as specified in the XML file). We should add the option to allow more formats to the custom field so the administratpor setting up that field can decide if the picker should allow different formats or not.

Should it/does it also accept HEX with transparency? https://gist.github.com/frankyonnetti/9400858

If this Issue get no Response, it will be closed at 17th September 2017.

This issue needs to stay open till #14427 is merged and then we can do this one here.

FWIW @C-Lodder is working on a new color field based on custom elements and probably this https://codepen.io/dgt41/pen/LjXQoP for joomla 4.

@laoneo merging #14427 might not be a great idea looking forward

I don't mind. Will this color picker then have more output formats? If yes then this issue can stay open, if not we can close it.

It should support all the formats, RGB, RGBA, HEX, HSV, basically everything

@laoneo - yes, it will.

The lets close #14427 and we wait for Charlie's one. Whats the pr?

There is no PR and won't be till probably next year. Bare in mind my PR will be for J4, not 3.x

14427 should be closed?

If @C-Lodder is going to create a new one, then yes. Here is the issue for the new one https://github.com/joomla-projects/custom-elements/issues/17.

thanks @laoneo

This should be closed. New features are not going in to J3 any more

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/14353

Was this page helpful?
0 / 5 - 0 ratings

Related issues

B3nito picture B3nito  路  5Comments

Didldu-Florian picture Didldu-Florian  路  4Comments

Hils picture Hils  路  5Comments

brianteeman picture brianteeman  路  6Comments

chmst picture chmst  路  5Comments