On Wed Mar 07, 2012 19:29 Carsten Haitzler said:

Hi Raster,

Exactly the samething is done. but instead of loading/saving colors in the form 
of hexa string "#ffffff",
a color structure with RGBA values is taken in accordance with APIs.

There is a main structure with parameters palette_name and color list.
color list is a list of colors of type Elm_Color_RGBA [ unsigned int r, 
unsigned int g, unsigned int b, unsigned int a ].

By default colors are loaded from "default" [ colors are loaded from 
config/base.src ] if colorpalette name  is not set by application. 
if application sets color palette name then the colors are loaded from that 
name, eg: "painting" is also added in base.src
and if application calls color_add, color_set [ these colors are updated back 
to config based on current palette name].

Thanks & Regards
Shilpa Singh


------- Original Message -------
Sender : Carsten Haitzler<ras...@rasterman.com>
Date : Mar 07, 2012 19:29 (GMT+09:00)
Title : Re: [E-devel] : Elementary: Elm_colorpalette - New widget patch

On Tue, 06 Mar 2012 22:06:18 +0900 ChunEon Park said:

no no no!
a color palette is a SEt of colors, 1, 2, 5, 20, 100 - look at gimp or
photoshop - look t the palettes list. these have names. THATS what i am
referring to.

so you have a palette "default" it has:
#ffffff
#000000
#888888
#ff0000
#ff8800
#ffff00

then u have "nature" with:
#ef8367
#874676
#031e0e
...
etc.

each palette has a name and a SET of colors that is the set of colors u can
then edit/select/change via api.

> 
>  Here is shilpa's
> mail.
> Hi, Perviously sent patch
> fails to apply due to merger of popup widget.
> please consider reviewing
> and testing attached patch instead.
> Thanks &Regards
> Shilpa
> Hi, Please find attached
> updated colorpalette patch with custom palette load/save
> feature. 
> Change Description: New
> widget elm_colorpalette is added. 
> ColorPalette is a color
> selection widget. 
> It allows the user to set a
> series of colors. 
> The colors can be picked by
> user from the color set by clicking on individual color
> item. 
> It also allows to load/save
> colors from/to config by setting unique color palette
> name. 
> As per my understanding of
> #6, coloritem pointer has to be returned to
> application 
> when color_add is called and
> application can use this pointer to set/get colors. color
> number(index) is/was not used anywhere. Please let me know if I
> have mis-understood the requirement. 
> Thanks & Regards Shilpa
> Singh 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to