Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Eclipse HSL controls within Color Picker

On Mon, Jul 10, 2017 at 1:54 PM, Eric Williams <ericwill@xxxxxxxxxx> wrote:

On 07/10/2017 01:45 PM, Zorawar S.B. wrote:

This is about the Color Picker that comes up when defining custom colors. (I have attached the image.)
For the HSL controls, the Saturation(Sat) and Luminosity(Lum) controls can take up values greater than 100. Is this correct?

Below link says saturation and lightness are percentage values.

I am not a Platform UI developer but this is my understanding as well. Saturation and lightness are either a real number between 0 and 1.0, or a percentage.

Note that the color picker widget is set up differently on different platforms -- for example on Linux (GTK3) the HSL method is deprecated. The color picker instead just uses Red, Green, Blue, and Alpha.

Also, for the Eclipse Color Picker do Lightness and Luminance mean the same thing?

Yes, this is correct. Sometimes it is also called luminosity.

Eric, thanks for answering.
It seems like the same color can be different between different platforms. On Linux with Alpha values and on Windows without it.
How do Eclipse controls/applications refer to color values then?
Do they always use RGB internally to be consistent across OSes?
Or they get handle to some object that depending on the OS can return HSL or Alpha value?
Is the HSL value ever considered on Windows for the final color value?

My apologies in advance, I wouldn't know where to start looking in the Eclipse code or make sense of it if it is OS specific.

Eric Williams
Associate Software Engineer - Eclipse Team
Red Hat
platform-ui-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top